I think the default driver for SAX checks for well-formed-ness of the input before forwarding the events.
I provided an example for someone looking to do something similar back in Re: Simplify HTML programatically. There you can see how to start your pipeline using the HTML driver.
In reply to Re: Dynamically cleaning up HTML fragments
by trwww
in thread Dynamically cleaning up HTML fragments
by SilasTheMonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |