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
php
|syntax-highlighting
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 <
etc. in order to let js do some syntax highlighting on the output?
© Stack Overflow or respective owner