extract text from html

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
pedrotuga
Forum Contributor
Posts: 249
Joined: Tue Dec 13, 2005 11:08 pm

extract text from html

Post by pedrotuga »

That's what i want to do. take away all the html and get only the text.
how do i do this?
aparently there is no function to this this.. at least i had a look at html_* funtions and didnt find any.
Any library, script or anything out here?

i wouldn't like to handcode it, my skills on regex are almost inexistent.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Re: extract text from html

Post by volka »

pedrotuga wrote:aparently there is no function to this this.. at least i had a look at html_* funtions and didnt find any.
it's called strip_tags
Post Reply