displaying var in textarea

From: Date: Fri, 10 Oct 2003 15:23:29 +0000
Subject: displaying var in textarea
Groups: php.general 
Request: Send a blank email to php-general+get-165754@lists.php.net to get a copy of this message
I have a var: $test = 'echo \'test\';'; If I display this in a textearea like so: echo "<textarea wrap=\"virtual\" rows=\"20\" style=\"width: 100%\" name=\"action\">\n" .$test ."</textarea>\n"; In the browser and in the HTML source I see (no slashes): echo 'test'; Even if I do an htmlentities($test); I see no slashes and the single-quotes are not shown in the HTML source as &quot; Is this just a behavior of the textarea??? Thanks! -Shawn

« previous php.general (#165754) next »