Unverified Commit b3805eb7 authored by Michael Hamann's avatar Michael Hamann Committed by GitHub
Browse files

XCOMMONS-901: Support both XHTML 1.0 and XHTML 5 in HtmlCleaner

* Code style
Co-authored-by: default avatarMarius Dumitru Florea <marius@xwiki.com>
parent df4b0a91
......@@ -77,8 +77,7 @@ public Map<String, String> applyTagTransformations(Map<String, String> attribute
if (attributes.containsKey(HTMLConstants.ATTRIBUTE_FONTSIZE)) {
String fontSize = attributes.get(HTMLConstants.ATTRIBUTE_FONTSIZE);
String fontSizeCss = FONT_SIZE_MAP.get(fontSize);
fontSizeCss = (fontSizeCss != null) ? fontSizeCss : fontSize;
String fontSizeCss = FONT_SIZE_MAP.getOrDefault(fontSize, fontSize);
builder.append(String.format("font-size:%s;", fontSizeCss));
if (attributes.containsKey(HTMLConstants.ATTRIBUTE_STYLE)
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