Merge branch 'GH-2983_whitelist_font_tag_attributes'
Add attributes for 'font' tag to the whitelist Fixes #2983
This commit is contained in:
commit
023caaa75b
1 changed files with 1 additions and 0 deletions
|
@ -14,6 +14,7 @@ public class HtmlSanitizer {
|
||||||
HtmlSanitizer() {
|
HtmlSanitizer() {
|
||||||
Whitelist whitelist = Whitelist.relaxed()
|
Whitelist whitelist = Whitelist.relaxed()
|
||||||
.addTags("font", "hr", "ins", "del")
|
.addTags("font", "hr", "ins", "del")
|
||||||
|
.addAttributes("font", "color", "face", "size")
|
||||||
.addAttributes("table", "align", "background", "bgcolor", "border", "cellpadding", "cellspacing",
|
.addAttributes("table", "align", "background", "bgcolor", "border", "cellpadding", "cellspacing",
|
||||||
"width")
|
"width")
|
||||||
.addAttributes("tr", "align", "bgcolor", "valign")
|
.addAttributes("tr", "align", "bgcolor", "valign")
|
||||||
|
|
Loading…
Reference in a new issue