Posted by lbrtchx on 01/30/08 15:07
Hi,
~
I just need to clean up some html from pages I get off the Net and
ten run it through a SAX parser. I don't really care about validation
or converting formatting to CSS or any of that
~
The thing is that tidy is not quoting attributes when needed
~
Say you have a crappy HTML statement on a page looking like:
~
<table cellpadding=0 border=0 cellspacing=0>
~
Tidy, I think, should edit it to:
~
<table cellpadding="0" border="0" cellspacing="0">
~
What are the flags you feed to tidy or the settings for jtidy so that
all attributes are surrounded by quotes?
~
Thanks
lbrtchx
Navigation:
[Reply to this message]
|