public abstract class HtmlSerializer extends Serializer
Abstract HTML serializer - contains common logic for descendants.
props| Modifier | Constructor and Description |
|---|---|
protected |
HtmlSerializer(CleanerProperties props) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
dontEscape(TagNode tagNode) |
protected String |
escapeText(String content) |
protected boolean |
isMinimizedTagSyntax(TagNode tagNode) |
protected void |
serializeEndTag(TagNode tagNode,
Writer writer,
boolean newLine) |
protected void |
serializeOpenTag(TagNode tagNode,
Writer writer,
boolean newLine) |
getAsString, getAsString, getAsString, getAsString, getAsString, isScriptOrStyle, serialize, write, write, writeToFile, writeToFile, writeToFile, writeToFile, writeToStream, writeToStream, writeToStream, writeToStreamprotected HtmlSerializer(CleanerProperties props)
protected boolean isMinimizedTagSyntax(TagNode tagNode)
protected boolean dontEscape(TagNode tagNode)
protected void serializeOpenTag(TagNode tagNode, Writer writer, boolean newLine) throws IOException
IOExceptionprotected void serializeEndTag(TagNode tagNode, Writer writer, boolean newLine) throws IOException
IOExceptionCopyright © 2006–2018. All rights reserved.