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 s) |
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, isScriptOrStyle, serialize, write, write, writeToFile, writeToFile, writeToFile, writeToFile, writeToStream, writeToStream, writeToStream, writeToStream
protected HtmlSerializer(CleanerProperties props)
protected boolean isMinimizedTagSyntax(TagNode tagNode)
protected boolean dontEscape(TagNode tagNode)
protected void serializeOpenTag(TagNode tagNode, Writer writer, boolean newLine) throws IOException
IOException
protected void serializeEndTag(TagNode tagNode, Writer writer, boolean newLine) throws IOException
IOException
Copyright © 2006–2020. All rights reserved.