In the form I create, I have textareas
that will contain a nice amount of text with line breaks enabled, for example:
Sentence One
Offer 2
I submit this to my form using htmlentities
, ex:
. htmlentities($_POST['textarea']) .
This, however, results in the following in a letter ( HTML letter ), which is sent in form:
Offer one offer two
Is there a way to keep line breaks using htmlentities
?
source share