I have some text in a database and within the text are entries such as & nbsp; (note, I've left a space to make sure it displays here). I want to read the data and display it withing a <textarea> form field for editing, but I want the & nbsp; to be displayed just like that and not converted to a space. Same goes for any special character notation. The text field contains a html template.
Thanks, Roger
Your could use a replace statment. for example
<?
$string="Lots of text "
$string2=strstr("&", "&", $string);
echo "<TEXTAREA>$string2;</TEXTAREA>";
?>
Mark.