Title: Bug in Email Editor ?
Last modified: April 16, 2018

---

# Bug in Email Editor ?

 *  Resolved Anonymous User 16052280
 * (@anonymized-16052280)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/bug-in-email-editor/)
 * Hi Rocketgeek,
 * I am sending HTML emails from the WP-Members plugin as indicated in your documentation
   [https://rocketgeek.com/filter-hooks/sending-html-emails-from-the-wp-members-plugin/](https://rocketgeek.com/filter-hooks/sending-html-emails-from-the-wp-members-plugin/)
 * I noticed that you can not use the `display` property when editing the body of
   the emails in the **Emails** tab.
 * For ex you type in the email body
    `<img src="http://www.test.com/test.jpg" style
   ="width:100px;display:block">` click **Update Emails** and the `display` property
   disappears from the body.
 * Is there a way around this issue in order to create HTML emails?
 * Thank you

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Chad Butler](https://wordpress.org/support/users/cbutlerjr/)
 * (@cbutlerjr)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/bug-in-email-editor/#post-10186014)
 * That’s actually not a bug. The plugin evaluates all submitted input (even on 
   the admin side) to prevent exploits via injection. In this case, it uses WP’s
   [wp_kses()](https://developer.wordpress.org/reference/functions/wp_kses/) function
   to scrub the submitted value against a list of allowed tags (“KSES” is a recursive
   acronym for “KSES Strips Evil Scripts”). The “display” style property is not 
   an allowed tag in WP’s defaults.
 * The following post has a list of whitelisted style properties as well as a filter
   example to add the “display” property:
    [https://wordpress.stackexchange.com/questions/173526/why-is-wp-kses-not-keeping-style-attributes-as-expected/195433#195433](https://wordpress.stackexchange.com/questions/173526/why-is-wp-kses-not-keeping-style-attributes-as-expected/195433#195433)
 *  Thread Starter Anonymous User 16052280
 * (@anonymized-16052280)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/bug-in-email-editor/#post-10186731)
 * Hi Chad,
    Thank you for the prompt response. Great plugin and support!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Bug in Email Editor ?’ is closed to new replies.

 * ![](https://ps.w.org/wp-members/assets/icon-256x256.png?rev=1226414)
 * [WP-Members Membership Plugin](https://wordpress.org/plugins/wp-members/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-members/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-members/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-members/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-members/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-members/reviews/)

## Tags

 * [email tab](https://wordpress.org/support/topic-tag/email-tab/)

 * 2 replies
 * 2 participants
 * Last reply from: Anonymous User 16052280
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/bug-in-email-editor/#post-10186731)
 * Status: resolved