Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > tidy not quoting attributes

Thread Tools

tidy not quoting attributes
Posts: n/a
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?
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Space in 'My Documents' directory not fixed by quoting or \ escaping bilsch Java 16 06-04-2012 02:23 AM
Tidy using unicode does not validate HTML 16 03-19-2007 02:33 PM
sending command line arguements to HTML Tidy d davis Perl 0 04-27-2004 02:23 PM
Quoting original messages in replies John Coxon Firefox 14 04-24-2004 06:18 PM
Quoting does not work in replace? Hans Deragon Perl Misc 3 02-15-2004 10:42 PM