for example, if i stored the following in a database as text:
This is some text.
new line
<a href="index.html">link</a>
and used
Code: Select all
echo (nl2br($text));This is some text.
new line
link
So is there a way to print it as it was entered, so that somebody posting a comment can't use HTML, but still have the line breaks for each new line?[/url]