Generate a W3C Document from a SF's HTML Cleaner TagNode.
Some code has been copy-pasted from SF's HTML Cleaner code (which is under a BDS license, see
http://htmlcleaner.sourceforge.net/license.php). Our goal is to remove this class completely if we can get SF's HTML
Cleaner to support the CDATA-related use cases that force us to have this class.
Remove when the following issues have been fixed:
- https://sourceforge.net/p/htmlcleaner/bugs/169/
Note: Even though in a public package this code is not meant to be a public API. We've had to put in under the
org.htmlcleaner package because of https://sourceforge.net/p/htmlcleaner/bugs/167/.