You are here: Re: Stripping html « PHP Programming Language « IT news, forums, messages
Re: Stripping html

Posted by Andy Hassall on 12/09/06 00:31

On 8 Dec 2006 16:16:53 -0800, "Bob" <bobr@whidbey.com> wrote:

>The TitleField in my DB reads:
>
>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 *
>
>I've tried:
>$notags = stripslashes($row['title']);
>
>and also
>
>$notags = htmlspecialchars($row['title']);
>
>but still get the tag info. How can I get rid of it?

If only there were some way to search the manual...

http://php.net/results.php?q=strip+html&l=en&p=wholesite

The offical function listed there isn't perfect by any means, but it would
seem to fit your requirement above, at least.

--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация