Title: Stop Users from Entering HTML
Last modified: August 31, 2016

---

# Stop Users from Entering HTML

 *  Resolved [rgalpin](https://wordpress.org/support/users/rgalpin/)
 * (@rgalpin)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/stop-users-from-entering-html/)
 * I want to disallow user entry of HTML for security reasons. However, I want to
   deliver email messages that are formatted with HTML.
 * Can Contact Form 7 be configured in this way?
 * Thanks
 * [https://wordpress.org/plugins/contact-form-7/](https://wordpress.org/plugins/contact-form-7/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [rgalpin](https://wordpress.org/support/users/rgalpin/)
 * (@rgalpin)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/stop-users-from-entering-html/#post-7400843)
 * I found after more testing that a filter I had added to functions.php while testing
   some other solutions was forcing CF7 to send the email in text/HTML format. With
   that turned off, I think I am getting what I need since although the messages
   are not HTML they do render the line breaks that make the email readable – which
   is something that I couldn’t get the default contact in Enfold to do.

Viewing 1 replies (of 1 total)

The topic ‘Stop Users from Entering HTML’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [rgalpin](https://wordpress.org/support/users/rgalpin/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/stop-users-from-entering-html/#post-7400843)
 * Status: resolved