PHP SAX parser for HTML?

Posted by Daniel on Stack Overflow See other posts from Stack Overflow or by Daniel
Published on 2010-05-30T15:38:07Z Indexed on 2010/05/30 15:42 UTC
Read the original article Hit count: 383

Filed under:
|
|

Hi.

I need HTML SAX (not DOM!) parser for PHP able to process even invalid HTML code. The reason i need it is to filter user entered HTML (remove all attributes and tags except allowed ones) and truncate HTML content to specified length.

Any ideas?

© Stack Overflow or respective owner

Related posts about php

Related posts about sax