Thread: Strip HTML
View Single Post
  #1 (permalink)  
Old 10-24-07, 09:47 AM
blinn_shade's Avatar
blinn_shade blinn_shade is offline
Aspiring Coder
 
Join Date: Aug 2007
Posts: 540
Thanks: 0
Thanked 0 Times in 0 Posts
Strip HTML

Hey,

I have used htmlentities() to insert HTML in the database. This outputs the HTML as : <p> etc...



Now I need to strip these values so it doesn't show any HTML or any HTML code. I know tat using : html_entity_decode(); restores the HTML to displayable HTML. But i need to get rid of everything to do with HTML. I just need the text in the html to be returned.

Can someone help me please?

Thanks.
Reply With Quote