org.htmlcleaner
Class DomSerializer
java.lang.Object
org.htmlcleaner.DomSerializer
public class DomSerializer
- extends Object
DOM serializer - creates xml DOM.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
props
protected CleanerProperties props
escapeXml
protected boolean escapeXml
DomSerializer
public DomSerializer(CleanerProperties props,
boolean escapeXml)
DomSerializer
public DomSerializer(CleanerProperties props)
createDOM
public Document createDOM(TagNode rootNode)
throws ParserConfigurationException
- Throws:
ParserConfigurationException
isScriptOrStyle
protected boolean isScriptOrStyle(Element element)
dontEscape
protected boolean dontEscape(Element element)
- encapsulate content with <[CDATA[ ]]> for things like script and style elements
- Parameters:
element -
- Returns:
- true if <[CDATA[ ]]> should be used.
Copyright © 2006-2013. All Rights Reserved.