W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2001

Re: Using HTML Tidy to clean to turn HTML fragments to XHTML fragment s

From: Ignacio Vazquez-Abrams <ignacio@openservices.net>
Date: Thu, 19 Jul 2001 00:25:27 -0400 (EDT)
To: Patrick Dingle <pdingle@checkernet.com>
cc: "'html-tidy@w3.org'" <html-tidy@w3.org>
Message-ID: <Pine.LNX.4.33.0107190021060.23332-200000@terbidium.openservices.net>
On Wed, 18 Jul 2001, Patrick Dingle wrote:

> I would like to use HTML tidy to convert an HTML fragment (i.e. a subset of
> things within the <body> of the page) to XHTML.  Is there a command line
> option or a way to do this?  HTML tidy always seems to add the <html> and
> <body> tags to the fragment.
>
> Patrick

Already solved. Apply the attached patch to the given release of HTML Tidy.
Then just add "body-only: yes" to your Tidy config file. It will leave you
with everything inside but excluding the body tag.

-- 
Ignacio Vazquez-Abrams  <ignacio@openservices.net>


Received on Thursday, 19 July 2001 00:25:42 GMT

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