public class XWikiDOMSerializer extends Object
org.htmlcleaner package because of https://sourceforge.net/p/htmlcleaner/bugs/167/.| Constructor and Description |
|---|
XWikiDOMSerializer(org.htmlcleaner.CleanerProperties props,
boolean escapeXml) |
| Modifier and Type | Method and Description |
|---|---|
Document |
createDOM(DocumentBuilder documentDocumentBuilder,
org.htmlcleaner.TagNode rootNode) |
protected boolean |
isScriptOrStyle(Element element) |
public XWikiDOMSerializer(org.htmlcleaner.CleanerProperties props,
boolean escapeXml)
props - the HTML Cleaner properties set by the user to control the HTML cleaning.escapeXml - if true then escape XML entitiespublic Document createDOM(DocumentBuilder documentDocumentBuilder, org.htmlcleaner.TagNode rootNode) throws ParserConfigurationException
documentDocumentBuilder - the DocumentBuilder instance to use, DocumentBuilder is not garantied to
be thread safe so at most the safe instance should be used only in the same threadrootNode - the HTML Cleaner root node to serializeParserConfigurationException - if there's an error during serializationprotected boolean isScriptOrStyle(Element element)
element - the element to checkCopyright © 2004–2016 XWiki. All rights reserved.