How to Remove Html Tags in PHP ?

Posted by TeknoSeyfo on Stack Overflow See other posts from Stack Overflow or by TeknoSeyfo
Published on 2010-03-14T13:12:33Z Indexed on 2010/03/14 13:15 UTC
Read the original article Hit count: 299

Filed under:
|

I use htmlspecialchars function in my string. But, I don't want to clean them;

<b>, <br>, <p> <ul>,<li> bla bla...

Example: Mystring = "<script>.....</script><br><b>test</b><p>aaaa</p>";

I want to; =

.....

test

aaaaa

© Stack Overflow or respective owner

Related posts about htmlspecialchars

Related posts about php