Problem with AnsPress email addon and notification
Ok, so I manage to find solution for this problem. All strings from text fields (option panel) are sanitized by default, that means also line breaks. I added a If statement to check for email text fields and to return sanitized strings with preserved line breaks.
Pull request submitted, but if You are in a hurry, then You can grab changes from my github:
Commit: here
Changed file: here
Sazonov Slava commented on answer
Sazonov Slava commented
Great. It’s working
Thx
Tomasz Sawko (Buyer) commented
Nope. Priard (https://anspress.io/user/Lukasz_Ladecki/) find solution – in answer for this question.
Hello Tomasz,
Look like a bug. Please try
\n\n
for line break instead of enter.
Sazonov Slava commented on answer
Sazonov Slava commented
Please add html forms
Great. It’s working now. Many thanks for your help.