Posted on: 9/30/2014 2:02:27 PM | Views : 443

Hey,
What's the best way of handling these?
I have an email form and obviously the textarea (body) bit doesn't handle line breaks in the email.  I need to be able to check for doubles and turn them into <p></p> and singles and turn them into <br /> so the html email is rendered properly and exactly as typed on screen.
I don't want to turn everything into one of the other, i.e. <p> as a single carriage return should have no blank line between.
Thanks

Go to the complete details ...