Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Stripping html
December 9, 2006, 12:16 am
rate this thread
Some title <span class=BoldRed>*</span>
This shows up correctly, with the asterisk in the correct format, when
shown on the web.
I also want to show this field without any of the formatting; i.e.
Some title *
$notags = stripslashes($row['title']);
$notags = htmlspecialchars($row['title']);
but still get the tag info. How can I get rid of it?
Re: Stripping html
If only there were some way to search the manual...
The offical function listed there isn't perfect by any means, but it would
seem to fit your requirement above, at least.
Andy Hassall :: firstname.lastname@example.org :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
- Christoph Burschka
December 10, 2006, 7:57 pm