When I assign a variable (or even a string literal) containing several cr lf character pairs to an empty div or p element using a php echo statement the cr lf are gone replaced by a single space char (0x20) and so the new line formatting is lost. The text is displayed as one long line although the element does wrap it.
It seemed that the cr lf was gone by looking at the displayed text. I verified this by copy-pasting the displayed text into a hex editor. How do I tell php to retain the cr lf characters in the text file? Here's the assignment code:
echo "<div class='showBox'><p> $content </p></div>";
This has the same results with or without the enclosing p element.