资 源 简 介
Takes dirty dirty (X)HTML and produces nice clean XHTML
It will;
* fix self closing tags
* lower-case tags
* remove non-standard attributes
* remove in-line style attributes
* remove in-line event attributes
* optionally remove other attributes
* tidy unnecessary white space and new lines
* remove comments
* remove proprietary word formatting tags
* replace tags e.g. i=>em
* optionally leave css classes in place
* format and indent html
Options
| Name | Description | Example Value |
|:---------|:----------------|:------------------|
| bodyOnly | clean the body tag only | true|false |
| allowedTags | only allow tags in this array, (white list), contents still rendered | ["p","em"] |
| removeTags | remove tags in this array, (black list), contents still rendered | ["strong"] |
| allowedAttributes | array of attributes to