Title: Extra  if input is HTML
Last modified: August 24, 2016

---

# Extra if input is HTML

 *  Resolved [Max Ziebell](https://wordpress.org/support/users/max-ziebell/)
 * (@max-ziebell)
 * [11 years ago](https://wordpress.org/support/topic/extra-if-input-is-html/)
 * I am using HTML chunks (for example with Email Users) and throw them at wp better
   email. I would need a way that **process_email_html** doesn’t add extra line 
   breaks to the HTML. Done with nl2br in the function. I removed it but I don’t
   think this is a good solution.
 * `<br />`
 * Any chance? Solution?
 * [https://wordpress.org/plugins/wp-better-emails/](https://wordpress.org/plugins/wp-better-emails/)

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

 *  Thread Starter [Max Ziebell](https://wordpress.org/support/users/max-ziebell/)
 * (@max-ziebell)
 * [11 years ago](https://wordpress.org/support/topic/extra-if-input-is-html/#post-6082901)
 * Okay. I addressed the issue on the other side  … and made sure that input to 
   HTML wp_mail has no newlines in them so nl2br doesn’t fire. If there is a solution
   that could become a permanente part of this please let me know!
 *  Plugin Author [Nicolas Lemoine](https://wordpress.org/support/users/nlemoine/)
 * (@nlemoine)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/extra-if-input-is-html/#post-6083254)
 * Hi Max,
 * I just updated the plugin to 0.3. You are now able to remove the `nl2br` behavior
   with a filter like:
 *     ```
       add_filter('wpbe_convert_line_breaks', '__return_false');
       ```
   
 * N.

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

The topic ‘Extra if input is HTML’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-better-emails_f6f6f6.svg)
 * [WP Better Emails](https://wordpress.org/plugins/wp-better-emails/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-better-emails/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-better-emails/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-better-emails/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-better-emails/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-better-emails/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Nicolas Lemoine](https://wordpress.org/support/users/nlemoine/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/extra-if-input-is-html/#post-6083254)
 * Status: resolved