mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -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.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 a new issue