summaryrefslogtreecommitdiff
path: root/doc/plugins/contrib/htmlbalance.mdwn
blob: 728e6afc238d220a01276a2bcabf1bdbe3680133 (plain)

[[!template id=plugin name=htmlbalance author="[[Simon_McVittie|smcv]]"]] [[!tag type/html]]

This plugin ensures that the HTML emitted by ikiwiki contains well-balanced HTML tags, by parsing it with [[!cpan 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 the [[ikiwiki/directive/inline]] directive doesn't leak into the rest of the page.

htmlbalance is available from the 'htmlbalance' branch in [[smcv]]'s git repository. I'd like to get this plugin included in ikiwiki - any code review is welcome.