Tidy parsing with SAX-like callbacks, and node replacement

Hello,

I am using tidylib to clean up HTML, but I also want to do some inline replacement of some of the HTML node content.

As far as I can tell, tidylib doesn't provide any callback interface so that I could tell when a particular element has been parsed (a la SAX), and there is no ability for me to replace a node, or set of nodes in the parsed tree. Have I got that right? Are there any plans to offer such an interface? 

Regards,

- johnk 

Received on Friday, 15 January 2010 21:12:33 UTC