Q:

Make an automatic ?

So I'm trying to create to create a foruming site, but when a thread is selected, it doesn't enter how the user put it. Example:
This would be what the user put:
Example
Here
But the website would output it as:
Example Here
It just jams it all together.
Any solutions? Thanks.
Code:
echo "<h2>".htmlspecialchars($thread['desc'], ENT_QUOTES)."</h2>";
Read the answers to see how this was solved!

A:

Found the answer
So, nl2br() plays a great role with this.
I managed to come up with
<?
echo "<h2>".nl2br(htmlspecialchars($thread['desc'], ENT_QUOTES))."<h2>";
?>

Thanks to @MagnusEriksson for mentioning nl2br().

