You are here: Re: html to plain text « All PHP « IT news, forums, messages
Re: html to plain text

Posted by Du on 10/30/05 05:19

Hi Disco .. try this
http://ca.php.net/strip-tags


"Disco Octopus" <discooctopus@yahoo.com> wrote in message
news:aurd1evzz16c.1lia29bxnf4cv$.dlg@40tude.net...
> Hi,
>
> I would like to know if there is a function in php that takes a string
> which is HTML, and returns a string that is all the text in the source
> string without the HTML tags.
>
> so, for example....
>
> given a source string of this.....
>
> <p>Hello <b>world</b>.</p>
> <p>Goodbye <b>world</b>.</p>
>
> I would like to have returned...
>
> Hello world.
> Goodbye world.
>
> Does anybody know if this exists?
>
> Thanks
>
> --
> a beef jerky site http://www.choicebeefjerky.com.au
> not a beef jerky site http://mycoolwheels.com/vote.cmks
> nobody ever dreams of working for the man
>



----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----

 

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

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