Multiline Input into HTML (to be passed in JSON)

Just had fun with this one all day – if you’re having issues with new line breaks (“\n”) messing up your JSON formatting a Find&Replace using this regex might do the trick.

/(\r\n)+|\r+|\n+|\t+/i

thanks to this post originally:

6 Likes