| 1 |
Readme |
Readme |
| 2 |
------ |
------ |
| 3 |
|
|
| 4 |
This is an HTML correcting module. The filter completely scans the input, |
This is an HTML correcting module. The filter scans the input and makes sure |
| 5 |
builds up a list of open tags and closes them when needed. Features: |
all HTML tags are properly nested and closed. |
|
|
|
|
- Correct the HTML so that a valid tree-structure is formed. |
|
|
- Smart-close certain tags that are still used without closing tags by |
|
|
some people: "<p>text<p>text" gets transformed into "<p>text</p><p>text</p>" |
|
|
instead of "<p>text<p>text</p></p>". |
|
|
- XHTML-ify single-use tags (<img>, <br>, <hr>, ...): "<img>" becomes |
|
|
"<img />". |
|
|
- Correct entities without semi-color: " " becomes " ". You can |
|
|
choose not to correct entities inside attribute-values: some people don't |
|
|
escape them. |
|
|
|
|
|
Note: The filter only checks against syntax, not against the HTML specification. |
|
|
Therefor non-existant tags or entities will pass as correct. |
|
| 6 |
|
|
| 7 |
|
Note: The filter only checks against basic syntax, not against the HTML |
| 8 |
|
specification. Non-existant tags or entities will pass as correct. |