Hi,
I'm building a webapp which allows to enter XHTML via forms. The problem is that I the entered XHTML *must* be valid XML. I use JTidy to correct any errors that may accure. So far so good.
But it turns out that if JTidy gets some tag, that it doesn't know, it simply returns empty string :-( It is a bit confusing, since I use HTMLArea and while pasting text from Microsoft Office, there are <o:p/> tags which causes the empty string !!
Is there any way to throw such tags away?
The empty string points probably to a thrown exception, doesn't it? Maybe you should first look for jTidy options for getting the error message to see, ignoring errors or even remove unknown tags.
On a first sight at http://www.w3.org/People/Raggett/tidy/ I found an option "word-2000: bool" for ignoring Word 2000 markup. But of course this does not necessarily mean that jTidy supports it too.
Joerg
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
