I have a form which escaped the input in PHP in a pretty standard way using this function:
mysql_real_escape_string( string )
But when I pull those contents out of the database, for some reason, the spaces are no longer showing, and the text gets displayed as one big block. This page has the example of it in the hike description area:
http://www.comehike.com/hikes/scheduled_hike.php?hike_id=131
Does anyone know why this is happening and how to prevent this? Is this a bug or normal behavior?
you have to learn HTML basics.
linebreaks intended not to be rendered in HTML.
To make it visible, you have to replace them with some HTML tag.