Add 'background' attribute for 'table' tag to the whitelist
This commit is contained in:
parent
75fba6898f
commit
13c24c26f4
1 changed files with 2 additions and 1 deletions
|
@ -14,7 +14,8 @@ public class HtmlSanitizer {
|
||||||
HtmlSanitizer() {
|
HtmlSanitizer() {
|
||||||
Whitelist whitelist = Whitelist.relaxed()
|
Whitelist whitelist = Whitelist.relaxed()
|
||||||
.addTags("font", "hr", "ins", "del")
|
.addTags("font", "hr", "ins", "del")
|
||||||
.addAttributes("table", "align", "bgcolor", "border", "cellpadding", "cellspacing", "width")
|
.addAttributes("table", "align", "background", "bgcolor", "border", "cellpadding", "cellspacing",
|
||||||
|
"width")
|
||||||
.addAttributes("tr", "align", "bgcolor", "valign")
|
.addAttributes("tr", "align", "bgcolor", "valign")
|
||||||
.addAttributes("th",
|
.addAttributes("th",
|
||||||
"align", "bgcolor", "colspan", "headers", "height", "nowrap", "rowspan", "scope", "sorted",
|
"align", "bgcolor", "colspan", "headers", "height", "nowrap", "rowspan", "scope", "sorted",
|
||||||
|
|
Loading…
Reference in a new issue