Skip to content

Commit

Permalink
Merge branch 'HtmlCleaner_whitelist_backports' into 5.4-MAINT
Browse files Browse the repository at this point in the history
  • Loading branch information
cketti committed Jan 4, 2018
2 parents bb8a76c + 3b96982 commit 5ba7179
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ public class HtmlSanitizer {
HtmlSanitizer() {
Whitelist whitelist = Whitelist.relaxed()
.addTags("font", "hr", "ins", "del")
.addAttributes("table", "align", "bgcolor", "border", "cellpadding", "cellspacing", "width")
.addAttributes("font", "color", "face", "size")
.addAttributes("table", "align", "background", "bgcolor", "border", "cellpadding", "cellspacing",
"width")
.addAttributes("tr", "align", "bgcolor", "valign")
.addAttributes("th",
"align", "bgcolor", "colspan", "headers", "height", "nowrap", "rowspan", "scope", "sorted",
Expand Down

0 comments on commit 5ba7179

Please sign in to comment.