Re: html to plain text



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


"Disco Octopus" <discooctopus@xxxxxxxxx> wrote in message
news:aurd1evzz16c.1lia29bxnf4cv$.dlg@xxxxxxxxxxxxx
> 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 =----
.



Relevant Pages

  • Re: Removing html tags from field
    ... You didn't happen to name the module KillHTML, ... >> Public Function KillHTML(sText As String, ... Dim iRight As Integer ... >>> Is there a way to remove html tags from a memo field? ...
    (microsoft.public.access.queries)
  • Re: Table in MySql database
    ... >can add html tags and so on and all works fine. ... the function that does the translation does not know you are ... Now if you remove the nl2br() function then it will prevent it happening ... Note that this assumes that the string '<table' will only occur when you ...
    (alt.php)
  • Re: extract text from html
    ... if you mean your Goal is just simply removing the HTML tags from a string ... i made a function for this purpose with some Regex ... Private Function stripHTMLAs String ... > Note, this is a Windows App, and not a Web App. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: extract text from html
    ... > if you mean your Goal is just simply removing the HTML tags from a string ... > Private Function stripHTMLAs String ... >> Note, this is a Windows App, and not a Web App. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Removing html tags from field
    ... Public Function KillHTML(sText As String) As String ... Dim iLeft As Integer ... Dim iRight As Integer ... > Is there a way to remove html tags from a memo field? ...
    (microsoft.public.access.queries)