W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2005

Re: HTML Tags

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Mon, 07 Nov 2005 07:07:06 +0100
To: "Weston Goodwin" <wegoodwin@hotmail.com>
Cc: html-tidy@w3.org
Message-ID: <6krtm1d2h3ccu7nbpt91ct4du8t240arsl@hive.bjoern.hoehrmann.de>

* 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:bjoern@hoehrmann.de · 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/ 
Received on Monday, 7 November 2005 06:06:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:55 GMT