ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old October 15th, 2002, 09:41 AM
kamarthi7 kamarthi7 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: germany
Posts: 6 kamarthi7 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
how to strip html tags except

how can I strip all HTML tags except "<br> <P> and <strong>" and save it in the database.

Reply With Quote
  #2  
Old October 15th, 2002, 09:22 PM
JayeshJain JayeshJain is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: Auckland,New Zealand
Posts: 31 JayeshJain User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 16
In PHP

HI

If you are using PHP please use function strip_tags
which Strips HTML and PHP tags from a string

Reply With Quote
  #3  
Old October 16th, 2002, 12:18 AM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
somehow i think kamarthi7 is using asp. just an educated guess. eheh


check out this
URL

Reply With Quote
  #4  
Old October 28th, 2008, 09:36 AM
maximusss maximusss is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2008
Posts: 1 maximusss User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 4 sec
Reputation Power: 0
I know this post is *really* old but someone may find this useful.
The built-in stripTags function is not secure as it can be hacked in many ways.

I recomment using chipmunkninja.com/StripTags-1.0-Released-l@ instead. It has all the futures as the original but it is much more secure.

You can find a working on-line example here: webutils.pl/StripTags

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingASP Development > how to strip html tags except


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap