mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 08:09:33 +08:00
FIX: Support div dir=
in sanitizer
This commit is contained in:
parent
1916924304
commit
4d8584f427
|
@ -124,6 +124,7 @@ whiteListFeature('default', [
|
|||
'div.quote-controls',
|
||||
'div.title',
|
||||
'div[align]',
|
||||
'div[dir]',
|
||||
'dl',
|
||||
'dt',
|
||||
'em',
|
||||
|
|
|
@ -56,6 +56,8 @@ test("sanitize", function() {
|
|||
cooked(`<abbr title="JavaScript">JS</abbr>`, `<p><abbr title="JavaScript">JS</abbr></p>`);
|
||||
cooked(`<dl><dt>Forum</dt><dd>Software</dd></dl>`, `<dl><dt>Forum</dt><dd>Software</dd></dl>`);
|
||||
cooked(`<sup>high</sup> <sub>low</sub> <big>HUGE</big>`, `<p><sup>high</sup> <sub>low</sub> <big>HUGE</big></p>`);
|
||||
|
||||
cooked(`<div dir="rtl">RTL text</div>`, `<div dir="rtl">RTL text</div>`);
|
||||
});
|
||||
|
||||
test("ids on headings", () => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user