Page 1 of 1
Removing HTML Tags
Posted: Tue Nov 15, 2005 8:37 pm
by AliasBDI
I am pulling some records out of a database to dynamically fill the <title> tag in the page. The record has HTML tags in it that should not show up. Is there a way to remove all HTML tags in PHP?
Posted: Tue Nov 15, 2005 8:40 pm
by trukfixer
http://us2.php.net/manual/en/function.strip-tags.php
helps to RTFM .. outta bookmark php.net . its where all of us go too

and it has search capability for functions, or search whole site .. google is your friend,

Posted: Tue Nov 15, 2005 8:43 pm
by AliasBDI
Thanks. Works perfectly and good to know!
Posted: Tue Nov 15, 2005 10:48 pm
by s.dot
feyd wrote a smarter strip_tags() function, i believe it's in the useful posts topic
Posted: Tue Nov 15, 2005 10:52 pm
by John Cartwright
in my signature
