I'm echoing out a multi-lined session string into a textarea if it's set:
<textarea><?php if (isset($_SESSION['saved_text'])) { echo nl2br($_SESSION['saved_text']); } ?></textarea>
Such as:
"Line 1
Line 2
Line 3"
And when it echoes out the session into the textarea it comes back with:
"Line 1
Line 2
Line 3"
Yet I want it how it was formatted in the string, with the line-breaks, but not explicitly showing them as " " etc. How do I do this?