/** * HTML-escapes and appends {@code text} to this element's content. * * @throws IllegalStateException if this builder represents a void element */ public SafeHtmlBuilder escapeAndAppendContent(String text) { // htmlEscape() unicode coerces in non-portable version. return appendContent(SafeHtmls.htmlEscape(text)); }