• Resolved Max Ziebell

    (@max-ziebell)


    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/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Max Ziebell

    (@max-ziebell)

    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

    (@nlemoine)

    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.