Forum Discussion
Stephanie
12 years agoSuper Hero
User notes that they can print and email
Hi all. I built a course earlier this year that contains a "notes" function to allow users to take a moment to reflect and type their thoughts on certain questions. This is used in place of a typica...
OwenHolt
9 years agoSuper Hero
If your email is not html based, you would need to convert the break to the following hexadecimal equivalent of a carriage return that the computer would then recognize: %0d%0A
So using James suggestion above, try something like the following JS:
your_string.replaceAll(new RegExp('\n', 'g'), '%0d%0A');
You can learn more about the 0d0a pair of characters as the signal for the end of one line and the beginning of another one HERE.
And to steal James' line.... Your mileage may vary on the code above as I didn't test it before posting it here....
Related Content
- 9 months ago
- 7 months ago
- 8 months ago
- 9 months ago
- 12 months ago