@Role public interface HTMLCleaner
| Modifier and Type | Method and Description |
|---|---|
Document |
clean(Reader originalHtmlContent)
Transforms any HTML content into valid XHTML that can be fed to the XHTML Parser for example.
|
Document |
clean(Reader originalHtmlContent,
HTMLCleanerConfiguration configuration)
Transforms any HTML content into valid XHTML.
|
HTMLCleanerConfiguration |
getDefaultConfiguration()
Allows getting the default configuration that will be used thus allowing the user to configure it like adding
some more filters before or after or even remove some filters to completely control what filters will be
executed.
|
Document clean(Reader originalHtmlContent)
getDefaultConfiguration()).originalHtmlContent - the original content (HTML) to cleanDocument clean(Reader originalHtmlContent, HTMLCleanerConfiguration configuration)
originalHtmlContent - the original HTML content to be cleaned.configuration - the configuration to use for cleaning the HTML contentHTMLCleanerConfiguration getDefaultConfiguration()
Copyright © 2004–2015 XWiki. All rights reserved.