html sanitation adjustment
This commit is contained in:
@@ -2,10 +2,10 @@
|
|||||||
"allowedTags": [
|
"allowedTags": [
|
||||||
"p", "br", "div", "span", "h1", "h2", "h3", "h4", "h5", "h6",
|
"p", "br", "div", "span", "h1", "h2", "h3", "h4", "h5", "h6",
|
||||||
"b", "strong", "i", "em", "u", "s", "strike", "del", "ins",
|
"b", "strong", "i", "em", "u", "s", "strike", "del", "ins",
|
||||||
"sup", "sub", "small", "big", "mark", "pre", "code",
|
"sup", "sub", "small", "big", "mark", "pre", "code", "kbd", "samp", "var",
|
||||||
"ul", "ol", "li", "dl", "dt", "dd",
|
"ul", "ol", "li", "dl", "dt", "dd",
|
||||||
"a", "table", "thead", "tbody", "tfoot", "tr", "th", "td", "caption",
|
"a", "table", "thead", "tbody", "tfoot", "tr", "th", "td", "caption", "colgroup", "col",
|
||||||
"blockquote", "cite", "q", "hr"
|
"blockquote", "cite", "q", "hr", "details", "summary"
|
||||||
],
|
],
|
||||||
"allowedAttributes": {
|
"allowedAttributes": {
|
||||||
"p": ["class", "style"],
|
"p": ["class", "style"],
|
||||||
@@ -18,9 +18,21 @@
|
|||||||
"h5": ["class", "style"],
|
"h5": ["class", "style"],
|
||||||
"h6": ["class", "style"],
|
"h6": ["class", "style"],
|
||||||
"a": ["class"],
|
"a": ["class"],
|
||||||
"table": ["class"],
|
"table": ["class", "style"],
|
||||||
"td": ["class", "colspan", "rowspan"],
|
"th": ["class", "style", "colspan", "rowspan"],
|
||||||
"th": ["class", "colspan", "rowspan"]
|
"td": ["class", "style", "colspan", "rowspan"],
|
||||||
|
"tr": ["class", "style"],
|
||||||
|
"thead": ["class", "style"],
|
||||||
|
"tbody": ["class", "style"],
|
||||||
|
"tfoot": ["class", "style"],
|
||||||
|
"ul": ["class", "style"],
|
||||||
|
"ol": ["class", "style", "start", "type"],
|
||||||
|
"li": ["class", "style"],
|
||||||
|
"blockquote": ["class", "style"],
|
||||||
|
"pre": ["class", "style"],
|
||||||
|
"code": ["class", "style"],
|
||||||
|
"details": ["class", "style"],
|
||||||
|
"summary": ["class", "style"]
|
||||||
},
|
},
|
||||||
"allowedCssProperties": [
|
"allowedCssProperties": [
|
||||||
"color", "background-color", "font-size", "font-weight",
|
"color", "background-color", "font-size", "font-weight",
|
||||||
|
|||||||
Reference in New Issue
Block a user