Commit ed91e77a authored by cketti's avatar cketti

Allow "background" attribute for tags <tr>, <th>, and <td>

parent 42682ae3
......@@ -17,13 +17,13 @@ public class HtmlSanitizer {
.addAttributes("font", "color", "face", "size")
.addAttributes("table", "align", "background", "bgcolor", "border", "cellpadding", "cellspacing",
"width")
.addAttributes("tr", "align", "bgcolor", "valign")
.addAttributes("tr", "align", "background", "bgcolor", "valign")
.addAttributes("th",
"align", "bgcolor", "colspan", "headers", "height", "nowrap", "rowspan", "scope", "sorted",
"valign", "width")
"align", "background", "bgcolor", "colspan", "headers", "height", "nowrap", "rowspan", "scope",
"sorted", "valign", "width")
.addAttributes("td",
"align", "bgcolor", "colspan", "headers", "height", "nowrap", "rowspan", "scope", "valign",
"width")
"align", "background", "bgcolor", "colspan", "headers", "height", "nowrap", "rowspan", "scope",
"valign", "width")
.addAttributes("map", "name")
.addAttributes("area", "shape", "coords", "href", "alt")
.addProtocols("area", "href", "http", "https")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment