diff options
author | Simon McVittie <smcv@ http://smcv.pseudorandom.co.uk/> | 2008-11-16 18:11:39 +0000 |
---|---|---|
committer | Simon McVittie <smcv@ http://smcv.pseudorandom.co.uk/> | 2008-11-17 10:46:21 +0000 |
commit | e7a840ed9a817cf4db59c90e680afd89e146b581 (patch) | |
tree | 73b0d9e81f4bd9d7be9b65f42edbcd15ca847378 /doc/plugins/htmlbalance.mdwn | |
parent | 408d483dc2938af527100f2201ceea0efb5019af (diff) |
htmlbalance: new plugin that balances tags by parsing and re-serializing
Diffstat (limited to 'doc/plugins/htmlbalance.mdwn')
-rw-r--r-- | doc/plugins/htmlbalance.mdwn | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/plugins/htmlbalance.mdwn b/doc/plugins/htmlbalance.mdwn new file mode 100644 index 000000000..7cdb1f950 --- /dev/null +++ b/doc/plugins/htmlbalance.mdwn @@ -0,0 +1,9 @@ +[[!template id=plugin name=htmlbalance author="Simon McVittie"]] +[[!tag type/html]] + +This plugin ensures that the HTML emitted by ikiwiki contains well-balanced +HTML tags, by parsing it with HTML::TreeBuilder and re-serializing it. This +acts as a lighter-weight alternative to [[plugins/htmltidy]]; it doesn't +ensure validity, but it does at least ensure that formatting from a +blog post pulled in by \[[![[ikiwiki/directive/inline]]]] doesn't +leak into the rest of the page. |