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. Advertisements

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. Max
    Replies:
    1
    Views:
    652
    Joe Kesselman
    Sep 22, 2006
  2. P4trykx
    Replies:
    2
    Views:
    2,125
    bruce barker
    Jan 31, 2007
  3. Replies:
    16
    Views:
    1,987
    Jukka K. Korpela
    Mar 19, 2007
  4. james_027

    class attributes & data attributes

    james_027, Jun 20, 2007, in forum: Python
    Replies:
    2
    Views:
    634
    Bruno Desthuilliers
    Jun 20, 2007
  5. Kyle Schmitt
    Replies:
    3
    Views:
    451
    Kyle Schmitt
    Jul 24, 2007
  6. Hans Deragon

    Quoting does not work in replace?

    Hans Deragon, Feb 15, 2004, in forum: Perl Misc
    Replies:
    3
    Views:
    134
    Tad McClellan
    Feb 15, 2004
  7. bilsch
    Replies:
    16
    Views:
    1,463
    Gene Wirchenko
    Jun 4, 2012
  8. Jayden
    Replies:
    16
    Views:
    840
    Steven D'Aprano
    Sep 29, 2012
Loading...