Support » Plugin: HTML Import 2 » Importing Style attribute while cleaning up HTML

  • Resolved pulpcovers

    (@pulpcovers)


    Is it possible to keep style attributes in cleaned HTML?

    For instance, I have an element
    <p style="padding-left: 30px;"><em>Some Text</em></p>

    After importing, the “p style” tag is missing, and the text is simply italicized. I have added <style> <p> to the Allowed HTML box, but the code is still stripped. Any suggestions?

    http://wordpress.org/extend/plugins/import-html-pages/

Viewing 1 replies (of 1 total)
  • Plugin Author Stephanie Leary

    (@sillybean)

    style needs to go in the attribute list, not the tags. The attribute field wasn’t displaying in 2.3 because of a CSS issue. This is fixed in 2.4.

Viewing 1 replies (of 1 total)
  • The topic ‘Importing Style attribute while cleaning up HTML’ is closed to new replies.