CompactHtmlSerializer
, PrettyHtmlSerializer
, SimpleHtmlSerializer
public 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, wait
getAsString, 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–2018. All rights reserved.