In order to maintain formatting in an HTML mail, I'm looking for some php code to change a blank line into
For example, the original text:
Line 1 Line 2 Line 3
Should turn into:
Line 1 Line 2 < br > Line 3
nl2br, but that functions add
<br> after every line, not just the blank lines.
Any help would be appreciated.