Re: html to plain text



Du wrote:

>
> "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.

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

Thanks.
That is spot on.

--
the beef jerky team : http://www.choicebeefjerky.com.au/distributors.html
not a beef jerky web site : http://mycoolfish.com/vote.cmks
freeball
.



Relevant Pages

  • Re: getAttribute question
    ... oddity with IE that getAttributereturns an empty string if the ... HTML specification, ... appropriate places in the HTML 4 and DOM HTML specifications. ...
    (comp.lang.javascript)
  • Re: [PHP] generating an html intro text ...
    ... You would have to search out and pull in all closing tags. ... grab 256 characters -- The string. ... html markup should not go towards the string length count, ...
    (php.general)
  • [perl-python] 20050127 traverse a dir
    ... suppose you want to walk into a directory, say, to apply a string ... replacement to all html files. ... So, when ever myfun is called, we need to loop thru the ... # with a recursive "filter" ...
    (comp.lang.perl.misc)
  • [perl-python] 20050127 traverse a dir
    ... suppose you want to walk into a directory, say, to apply a string ... replacement to all html files. ... So, when ever myfun is called, we need to loop thru the ... # with a recursive "filter" ...
    (comp.lang.python)
  • Re: is there a way to take an html string and render it as a web browser would, from the command lin
    ... is there a way to take an html string and render it as a web ... browser would, from the command line? ... particular, image tags should print out as images, not image tags. ...
    (comp.lang.php)