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

RE: Probably a simple question (jtidy)?

From: Endre Rognerud <e.m.rognerud@usit.uio.no>
Date: Thu, 17 Jul 2003 21:45:25 +0200
To: "'Arno Schatz'" <list@arnoschatz.de>
Cc: <html-tidy@w3.org>
Message-ID: <002101c34c9b$f7e333d0$8300a8c0@uio.no>

Thanks for your answer. Is it possible to let JTidy output i modified html
for a chosen node, modified to the better?


Arno Schatz (Thursday, July 17, 2003 5:58 PM):
> Hi,
> JTidy won't do outputting of the original HTML string out-of-the-box.
> Not sure how difficult it is to add. But the Jivan HTML (Re)Parser
> can do it out of the box. Whenever you do not change a node, the
> Jivan Parser will return the original HTML string for that node (and
> subnodes). 
> Check out www.jivan.org
> Arno
> Endre Rognerud wrote:
>> Hi!
>> I'm new to jtidy and I have a question I can't find an answer to.
>> Hope someone on this list can give me a hint :)
>> I use jtidy to parse a html document so I can save some metadata.
>> These data I use to create a modified version of the same document.
>> Some of the tags, i.e. the body-content, I want to save "untouched".
>> Is it possible to let jtidy give me the offset (start and stop) of a
>> node/tag? Then I can just use substring to get the content without
>> doing som regexp etc. 
>> If not, it would be nice if jtidy could give me i pretty print of one
>> node/tag or give me a part of the original document. Then I can get
>> a script tag as is and save this for later. Is this possible?
>> Thanks in advance!
>> --
>> Regards, Endre... :)

Med vennlig hilsen
Endre Rognerud                         (Webgruppa, SAUS, USIT, UIO)
Received on Thursday, 17 July 2003 15:47:31 UTC

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