#241 Drop CSS styles and IDs

open
nobody
6
2005-04-13
2004-11-19
timmerk
No

Could you add two options - one that drops any CSS reference to a
style sheet, and/or drops any styles defined in the document itself.
The other option would remove ids and classes from objects in the
document.

Thanks!

Discussion

  • timmerk

    timmerk - 2004-11-19
    • priority: 5 --> 9
     
  • timmerk

    timmerk - 2004-11-19
    • priority: 9 --> 8
     
  • Björn Höhrmann

    • priority: 8 --> 5
     
  • Jelks Cabaniss

    Jelks Cabaniss - 2005-04-13

    Logged In: YES
    user_id=587974

    Sounds like this needs to be broken into five parts, possible
    made into five feature requests. Along the lines of `drop-font-
    tags` ...

    1) drop-style-attributes
    2) drop-id-attributes
    3) drop-class-attributes
    4) drop-embedded-styles
    5) drop-linked-styles

    I've certainly needed #1 on *numerous* occasions. All of
    them would be excedingly useful for cleaning up unwanted
    cruft from problem pages of dubious origin.

    +1

     
  • Arnaud Desitter

    Arnaud Desitter - 2005-04-13
    • priority: 5 --> 6
     
  • Björn Höhrmann

    Logged In: YES
    user_id=188003

    This is very easy to do using XSLT, I am -1 on adding ever
    more features to Tidy. We should rather work on a proper
    plugin system...

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks