Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

removing inline CSS

2014-06-07
2014-06-07
  • David Matthews
    David Matthews
    2014-06-07

    I'm the maintainer of a webmail program (http://sourceforge.net/projects/jwma/).

    I'm likely going to switch to jericho from another html parsing library in the next version as it nicely solves the problem of rendering html email as plain text.

    I'm wondering if it would also solve the problem of displaying html email as such, ie you have an html document (the webmail program) displaying another html document (the email) with styling that messes up appearance.

    Any pointers to create an output document that retains html markup but removes styling?

    mail@dmatthews.org

     
  • Martin Jericho
    Martin Jericho
    2014-06-07

    I'm not actually sure what you're asking as it seems all you need to do is remove style elements and link elements referring to external style sheets.

    But instead of doing that why not just display it in an iframe so it retains all of the intended styling?

     
    Last edit: Martin Jericho 2014-06-07