HtmlProcessor
Interfaces, Classes and Traits
- AbstractHtmlProcessor
- Base class for HTML processor that e.g., can remove, add or modify nodes or attributes.
- CssToAttributeConverter
- This HtmlProcessor can convert style HTML attributes to the corresponding other visual HTML attributes, e.g. it converts style="width: 100px" to width="100".
- CssVariableEvaluator
- This class can evaluate CSS custom properties that are defined and used in inline style attributes.
- HtmlNormalizer
- Normalizes HTML: - add a document type (HTML5) if missing - disentangle incorrectly nested tags - add HEAD and BODY elements (if they are missing) - reformat the HTML
- HtmlPruner
- This class can remove things from HTML.
