note 92495 deleted from function.addcslashes by ajf

From: Date: Mon, 18 Nov 2013 19:01:09 +0000
Subject: note 92495 deleted from function.addcslashes by ajf
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-197560@lists.php.net to get a copy of this message
Note Submitter: kongaspar at gmail dot com ---- Perhaps the following is a more efficient JavaScript escape function: <?php function jsEscape($str) { return addcslashes($str,"\\\'\"&\n\r<>"); } ?>

« previous php.notes (#197560) next »