org.xwiki.xml.internal.html
Class XWikiDOMSerializer
java.lang.Object
org.xwiki.xml.internal.html.XWikiDOMSerializer
public class XWikiDOMSerializer
- extends Object
Generate a W3C Document from a SF's HTML Cleaner TagNode.
Original implementation by Vladimir Nikic, under the BSD license
(see http://htmlcleaner.sourceforge.net/license.php).
Modified to bypass following bugs:
- https://sourceforge.net/tracker/?func=detail&aid=2691888&group_id=183053&atid=903696
- https://sourceforge.net/tracker/?func=detail&aid=2761963&group_id=183053&atid=903696
- Since:
- 1.8.2
- Version:
- $Id$
|
Constructor Summary |
XWikiDOMSerializer(org.htmlcleaner.CleanerProperties props,
boolean escapeXml)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XWikiDOMSerializer
public XWikiDOMSerializer(org.htmlcleaner.CleanerProperties props,
boolean escapeXml)
- Parameters:
props - the HTML Cleaner properties set by the user to control the HTML cleaning.escapeXml - if true then escape XML entities
createDOM
public Document createDOM(org.htmlcleaner.TagNode rootNode)
throws ParserConfigurationException
- Parameters:
rootNode - the HTML Cleaner root node to serialize
- Returns:
- the W3C Document object
- Throws:
ParserConfigurationException - if there's an error during serialization
Copyright © 2004-2011 XWiki. All Rights Reserved.