This is what I did, but I thought there is a better way.

why u dont use jdity and then grab only the content of the body element?

--stavros
On Sun, 25 Jan 2004, Marcin Okraszewski wrote:


Hi,
I want to convert HTML document fragment to XHTML fragment. I tried with JTidy, but it seems to work only with full HTML document, while I need only a fragment, like "this is <b>example of <i>fragment</i></b>".


Is there anything like JTidy to tidy only fragments? Or maybe is there any way to tidy fragments with JTidy (well, maybe without wrapping fragment with <html><body> and than striping it) ?

Regards,
Marcin Okraszewski


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to