CompactHtmlSerializer, PrettyHtmlSerializer, SimpleHtmlSerializerpublic abstract class HtmlSerializer extends Serializer
Abstract HTML serializer - contains common logic for descendants.
props| Modifier | Constructor | Description |
|---|---|---|
protected |
HtmlSerializer(CleanerProperties props) |
| Modifier and Type | Method | 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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAsString, 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.