Phil Jackson
01-16-2010, 04:16 PM
Hi, im trying to escape php code to convert all into html references ie
$str = "$_GET['foo'];"
echo encodeString($str);
but $str would convert into what ever that var is but I don't want to do that.
i want to convert the ' into ' and the $ into $. Anyone know how?
$str = "$_GET['foo'];"
echo encodeString($str);
but $str would convert into what ever that var is but I don't want to do that.
i want to convert the ' into ' and the $ into $. Anyone know how?