Current location: Hot Scripts Forums » Programming Languages » PHP » Strip HTML

Strip HTML

 
Prev Previous Post   Next Post Next
  #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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
html tutoral thefrtman HTML/XHTML/XML 5 04-27-09 11:25 AM
HTML Form 1 -> Perl -> return response to HTML form 2 Oleks Perl 13 10-18-06 05:59 PM
java codes to strip html tags y2j150 JavaScript 1 08-05-05 04:44 PM
Need website design or HTML coding help? website_help HTML/XHTML/XML 0 05-26-05 01:07 PM
freeware code to strip HTML tags ? xgab Perl 5 04-19-04 08:31 PM


All times are GMT -5. The time now is 09:28 PM.
vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.