Add attributes for 'font' tag to the whitelist

This commit is contained in:
cketti 2018-01-04 05:07:41 +01:00
parent 118b465406
commit 9b8617d33f

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")