• Resolved alexene22

    (@alexene22)


    Hi!
    I am trying to create a custom html template with css for my emails. But after saving, all the tags are stripped out, erased.
    Even if I write <style>123</style> it saves only 123 without tags.
    How can I design the html and css for my custom template?
    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter alexene22

    (@alexene22)

    Did you manage to take a look over this?
    I can see in the plugin documentation (a partial screenshot) that tags are alowed in the template editor. But mine are erased.
    Thank you!

    Plugin Author Milan Petrovic

    (@gdragon)

    I will check this soon, and if there is a problem, will fix it soon.

    Plugin Author Milan Petrovic

    (@gdragon)

    After testing and trying to tweaks things, I decide to remove the custom HTML option.

    On one hand, we have the need for a complex HTML for an email with quirky tags and attributes, and on the other hand, we have the need for security and for properly sanitized input, including this HTML. There is no way in WordPress to properly sanitize such a complex HTML without losing things, so the only way to allow HTML email in full, is to skip sanitation, and that is not a good option.

    So, the next plugin version will lose the Custom HTML field, but it will include an alternative method to provide the plugin with your own HTML templates.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom HTML Template striped of tags’ is closed to new replies.