|
You can use nl2br() function to replace newlines to <br /> html tags, and you can force newlines using wordwrap(). For example, if I wanted to display form post data in a container that allowed overflow, I would use the following:
echo nl2br(htmlentities(wordwrap($_POST['textarea'], 70)));
__________________
<mgraphic /> - I don't have a solution but I admire the problem.
|