diff --git a/src/main/java/io/wcm/wcm/ui/clientlibs/components/HtmlTagBuilder.java b/src/main/java/io/wcm/wcm/ui/clientlibs/components/HtmlTagBuilder.java index b5a0919..1e9038b 100644 --- a/src/main/java/io/wcm/wcm/ui/clientlibs/components/HtmlTagBuilder.java +++ b/src/main/java/io/wcm/wcm/ui/clientlibs/components/HtmlTagBuilder.java @@ -70,9 +70,9 @@ String build() { for (Map.Entry attr : this.attrs.entrySet()) { markup.append(" ").append(attr.getKey()); if (attr.getValue() != null) { - markup.append("=\""); - markup.append(xssApi.encodeForHTMLAttr(attr.getValue())); - markup.append("\""); + markup.append("=\"") + .append(xssApi.encodeForHTMLAttr(attr.getValue())) + .append("\""); } } markup.append(">");