PHP how to remove the html tags(<DIV></DIV>,<P></P>,<SPAN></SPAN>) from the string

Posted by Dam on Stack Overflow See other posts from Stack Overflow or by Dam
Published on 2010-03-25T07:05:51Z Indexed on 2010/03/25 7:23 UTC
Read the original article Hit count: 140

Filed under:

Hi frns,

Am using the strip_tags() to remove the HTML tags from one content . but i wants to remove the html (<DIV></DIV>,<P></P>,<SPAN></SPAN>) tags apart from the <img> tag and <a> , i don't want to remove the <img ><a> tag from that . but need to remove other all html tags from that content how can i do help me.

thanks

© Stack Overflow or respective owner

Related posts about php