FW: Which function?

FW: Which function?

am 30.08.2007 10:38:00 von Gustav Wiberg

Some more info:

I get this (Javascript) error from Firebug:

unterminated string literal
Tip('\n


Is this something that could be solved in php?

Best regards
/Gustav Wiberg


-----Original Message-----
From: Gustav Wiberg [mailto:gustav@hmn.se]=20
Sent: Thursday, August 30, 2007 10:25 AM
To: 'php-windows@lists.php.net'
Subject: Which function?

Hi there!
=20
Is there ant predefined function for doing this?
=20
I want to put text (from a database) inside quotes, like for example Javasc=
ript:window.alert('');
=20
Is there any function in PHP for translating $dbText into something that Ja=
vascript would accept? (something inside quotes)=20
I tried with http://se.php.net/manual/sv/function.htmlentities.php but that=
didn't seem to work
=20
Best regards
/Gustav Wiberg
=20
=20

No virus found in this outgoing message.
Checked by AVG Free Edition.=20
Version: 7.5.484 / Virus Database: 269.12.12/979 - Release Date: 2007-08-29=
20:21
=20


No virus found in this outgoing message.
Checked by AVG Free Edition.=20
Version: 7.5.484 / Virus Database: 269.12.12/979 - Release Date: 2007-08-29=
20:21
=20

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php