tidy not quoting attributes

Discussion in 'HTML' started by lbrtchx@gmail.com, Jan 30, 2008.

  1. Guest

    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
     
    , Jan 30, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. xyZed
    Replies:
    8
    Views:
    394
    xyZed
    Apr 5, 2006
  2. Derek Fountain

    Quoting confusion

    Derek Fountain, Aug 13, 2003, in forum: XML
    Replies:
    2
    Views:
    1,306
    Derek Fountain
    Aug 13, 2003
  3. Replies:
    16
    Views:
    1,936
    Jukka K. Korpela
    Mar 19, 2007
  4. Hans Deragon

    Quoting does not work in replace?

    Hans Deragon, Feb 15, 2004, in forum: Perl Misc
    Replies:
    3
    Views:
    89
    Tad McClellan
    Feb 15, 2004
  5. bilsch
    Replies:
    16
    Views:
    1,277
    Gene Wirchenko
    Jun 4, 2012
Loading...

Share This Page