Posted by Alvaro G. Vicario on 07/04/06 21:26
*** FP escribió/wrote (4 Jul 2006 12:08:07 -0700):
> How do I compensate for these problem characters when I try to set a
> JavaScript variable? eg.
>
> <SCRIPT LANGUAGE="JavaScript">
> MyComments = " <? PHP result here?>"
> </script>
Check the latest user note in:
http://www.php.net/htmlspecialchars
I don't really understand the code, anyway. You'll probably have enough
with:
http://www.php.net/addslashes
--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
--
[Back to original message]
|