Hi,
I am pulling code snips out of the db and echo'ing them on the page.
I am using this to display the code:
$answer=$result[answer];
echo htmlentities($answer);
This works fine.
The problem is when I add the code in it looks like this:
<?php
echo"something here";
?>
when I echo it on the page, it looks like this:
<?phpecho"something here";?>
It do not pull the code in the same format that it was enterd no line breaks or spaces. How can I make it dislay the same way it was enterd?
Thanks. Bill