W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2012

Re: Wrapping in HTML

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Mon, 09 Jan 2012 22:24:45 +0100
To: Ashok Renukappa <frnd4u.ashok@gmail.com>
Cc: html-tidy@w3.org
Message-ID: <4lmmg71jp7gb562950hoc6b33qoued8v8q@hive.bjoern.hoehrmann.de>
* Ashok Renukappa wrote:
>I have a requirement, where i want to wrap HTML content in my java code
>according to some length.

Tidy can't realy help you with this. You could try using, say, `-wrap 1`
and then run a script over the output making the desired replacement,
taking good care that you don't edit into tags and attribute values and
so on, but generally speaking you would be better off with a different
tool (like a proper XML or HTML parser where you can make the changes in
a more structured manner).
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Monday, 9 January 2012 21:25:20 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:58 UTC