mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -05:00
FIX: Support div dir=
in sanitizer
This commit is contained in:
parent
1916924304
commit
4d8584f427
2 changed files with 3 additions and 0 deletions
|
@ -124,6 +124,7 @@ whiteListFeature('default', [
|
||||||
'div.quote-controls',
|
'div.quote-controls',
|
||||||
'div.title',
|
'div.title',
|
||||||
'div[align]',
|
'div[align]',
|
||||||
|
'div[dir]',
|
||||||
'dl',
|
'dl',
|
||||||
'dt',
|
'dt',
|
||||||
'em',
|
'em',
|
||||||
|
|
|
@ -56,6 +56,8 @@ test("sanitize", function() {
|
||||||
cooked(`<abbr title="JavaScript">JS</abbr>`, `<p><abbr title="JavaScript">JS</abbr></p>`);
|
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(`<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(`<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", () => {
|
test("ids on headings", () => {
|
||||||
|
|
Loading…
Reference in a new issue