HTML Tags

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

HTML Tags

Weston Goodwin

Is there a way to use tidy to extract plain text information from a
particular HTML elment.    Such as what is in a <p> tag or what's in a <a
href> tag?




Reply | Threaded
Open this post in threaded view
|

Re: HTML Tags

Bjoern Hoehrmann

* Weston Goodwin wrote:
>Is there a way to use tidy to extract plain text information from a
>particular HTML elment.    Such as what is in a <p> tag or what's in a <a
>href> tag?

You could use the library that way but it's not exactly easy. If you
just want the "foo" in <p>foo<spab>bar</span></p> it's easier, there
is a tidyNodeGetText function for that.
--
Bj?rn H?hrmann ? mailto:[hidden email] ? http://bjoern.hoehrmann.de
Weinh. Str. 22 ? Telefon: +49(0)621/4309674 ? http://www.bjoernsworld.de
68309 Mannheim ? PGP Pub. KeyID: 0xA4357E78 ? http://www.websitedev.de/