Current location: Hot Scripts Forums » Programming Languages » PHP » removing specified html tags from text

removing specified html tags from text

Reply
  #1 (permalink)  
Old 01-15-04, 07:31 PM
memon memon is offline
New Member
 
Join Date: Dec 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
removing specified html tags from text

can someone please help me on how i can remove html tags from text inputted by users but will only allow <b>, ,<i>, <u>, <small>, <h1> etc etc ( basically keeping descriptive tags ). i dont want <img> and <table> tags.
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
  #2 (permalink)  
Old 01-15-04, 09:56 PM
blaw's Avatar
blaw blaw is offline
Junior Code Guru
 
Join Date: Dec 2003
Location: Vancouver, BC, Canada
Posts: 550
Thanks: 0
Thanked 0 Times in 0 Posts
Hello,

Check this out:

PHP Manual strip_tags():
http://ca.php.net/manual/en/function.strip-tags.php

HTH.
__________________
Blavv =|
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
Reply

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
Classified Ads skipper23 Perl 3 11-22-05 03:22 AM
formmail problem gscraper Perl 12 08-27-04 04:06 AM
Classified Ads skipper23 Perl 2 12-30-03 04:43 AM
picking random entries with a filter... Double selection problem dsumpter PHP 7 11-16-03 08:19 PM
displaying all duplicate records in my table. dsumpter PHP 6 09-02-03 11:54 AM


All times are GMT -5. The time now is 04:52 AM.
vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.