troubleshooting Question

Strip tags - except bold, italics, underline, links, and images

Avatar of innercproductions
innercproductions asked on
PHP
3 Comments1 Solution799 ViewsLast Modified:
I want to take out the HTML that is inputted into a form...
unless it is a simple HTML tag like: <b><i><u><img><a href...

The form submits the info to the database.
Then it will be retrieved again for editting in forms...
And also be displayed on a webpage.



I was looking at all the infor at http://php.net/strip_tags
but it's a little overwhelming.

The closest one I found was the comment dated October 15 2003.

But I couldn't tell if it was what I really needed.

Could someone give me as simple of a script that I could input that would do the job?
A function would be ok too. Maybe better...


ASKER CERTIFIED SOLUTION
TeRReF

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros