• Resolved raidenelite

    (@raidenelite)


    I have issues with html emails, when sent many <br> tags are added, making the email very ugly.
    After some research i found out it happens when calling filterEmail() function (classes/base.php)
    At first i resolved it by removing “nl2br()” from the return, but then i saw that i couldn’t add new lines anymore.
    So i then figured that i need to write the html code into the “text” part of the editor with no new lines between html tags except the actual text, but if for error or to preview i click on the “Visual” when i go back to “Text” wordpress put the new lines after every tag, and i have to remove them once again.

    Is there a way to make it more user friendly?
    Thank you

    • This topic was modified 4 years, 3 months ago by raidenelite.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor genetech

    (@genetech)

    Hi,

    Pie Register uses default WP editor for editing notification template. Please share example screenshot of your notification template and email body with line breaks.

    See screenshot: https://prnt.sc/tdapma

    Thanks

    • This reply was modified 4 years, 3 months ago by genetech.
    Thread Starter raidenelite

    (@raidenelite)

    Hello,

    if i put the html code in the text editor like this:
    https://prntscr.com/tdb96k
    it previews correctly in “Visual”
    https://prntscr.com/tdbb8y

    but this was/is the result (doesn’t matter the client)
    https://prntscr.com/tdbcv8

    i then realized that i have to put the code this way, making sure there is no new line after the html tags:
    https://prntscr.com/tdbdzl

    this way the email shows correctly but if i click on “Visual” and then Back on “Text” the code goes back to the first screenshot, messing up the email again

    From what i found out the WP Editor is not the problem, it happens because of nl2br() as stated in the first post, but if you remove it the normal text also doesn’t have new lines.

    Hope that’s clear
    Cheers

    • This reply was modified 4 years, 3 months ago by raidenelite.
    Plugin Contributor genetech

    (@genetech)

    Hi,

    Thanks for explaining the issue in detail. We will work on this issue. Once the update is available, we will update here also.

    Thanks

    Plugin Contributor genetech

    (@genetech)

    Hi,

    This issue is fixed. Please update your plugin to latest version (3.5.6).

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Br tags added in email’ is closed to new replies.