Merge branch 'GH-2983_whitelist_font_tag_attributes'

Add attributes for 'font' tag to the whitelist

Fixes #2983
This commit is contained in:
cketti 2018-01-04 05:13:28 +01:00
commit 023caaa75b

View file

@ -14,6 +14,7 @@ public class HtmlSanitizer {
HtmlSanitizer() {
Whitelist whitelist = Whitelist.relaxed()
.addTags("font", "hr", "ins", "del")
.addAttributes("font", "color", "face", "size")
.addAttributes("table", "align", "background", "bgcolor", "border", "cellpadding", "cellspacing",
"width")
.addAttributes("tr", "align", "bgcolor", "valign")