Posted by Oli Filth on 10/30/05 17:02
Sam Tang said the following on 30/10/2005 08:09:
> Disco Octopus wrote:
>
>> 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.
>>
> I think htmlentities() is what you looking for:
>
I don't think so...
--
Oli
Navigation:
[Reply to this message]
|