Escape brackets on php for javascript

Jaresaimili

New Member
For example i've a php script with this content:\[code\]<?php$msg = addslashes("I'm a message. The what happened >:(");echo "<script>alert($msg); return false;</script>";?>\[/code\]But the alert get broken by the last "(". How can i solve this?
 
Back
Top