Package org.htmlcleaner
Class HtmlSerializer
java.lang.Object
org.htmlcleaner.Serializer
org.htmlcleaner.HtmlSerializer
- Direct Known Subclasses:
CompactHtmlSerializer
,PrettyHtmlSerializer
,SimpleHtmlSerializer
Abstract HTML serializer - contains common logic for descendants.
-
Field Summary
Fields inherited from class org.htmlcleaner.Serializer
props
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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) Methods inherited from class org.htmlcleaner.Serializer
getAsString, getAsString, getAsString, getAsString, getAsString, isScriptOrStyle, serialize, write, write, writeToFile, writeToFile, writeToFile, writeToFile, writeToStream, writeToStream, writeToStream, writeToStream
-
Constructor Details
-
HtmlSerializer
-
-
Method Details
-
isMinimizedTagSyntax
-
dontEscape
-
escapeText
-
serializeOpenTag
- Throws:
IOException
-
serializeEndTag
- Throws:
IOException
-