Strip tags but not those inside <code>

Posted by dantan on Stack Overflow See other posts from Stack Overflow or by dantan
Published on 2010-05-18T20:48:37Z Indexed on 2010/05/18 20:50 UTC
Read the original article Hit count: 170

Filed under:
|

I have seen some solutions, or at least tries, but none of them really work.

How do I strip all tags except those inside or [code] - and replace all the < and > with &lt; etc. in order to let js do some syntax highlighting on the output?

© Stack Overflow or respective owner

Related posts about php

Related posts about syntax-highlighting