Replace \n with <p> in html body of email- why doesn't my "replace" function work?

I’m trying to parse a json that contains the body of an html email and replace the “\n” with “

” to get it to show paragraphs correctly in

I’ve tried this but it’s not working. The \n isn’t being “seen” .

Can anyone explain what I’m missing here?


When asking your question, please include:

:footprints: The steps you have taken
:camera_flash: Relevant screenshots
:link: Any links you have
[ Code { "and": "JSON", "in" : "code block"} ]
:x: Exclude Personal Information.

I think
U need to first parse html data from module

More details on website

1 Like