note 92495 added to function.addcslashes
| From: | kongaspar at gmail dot com | Date: | Mon, 27 Jul 2009 12:33:05 +0000 |
| Subject: | note 92495 added to function.addcslashes | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-158771@lists.php.net to get a copy of this message | ||
Perhaps the following is a more efficient JavaScript escape function:
function jsEscape($str) {
return addcslashes($str,"\\\'\"&\n\r<>");
}
----
Server IP: 117.55.229.1
Probable Submitter: 122.106.210.128
----
Manual Page -- http://www.php.net/manual/en/function.addcslashes.php
Edit -- https://master.php.net/note/edit/92495
Del: integrated -- https://master.php.net/note/delete/92495/integrated
Del: useless -- https://master.php.net/note/delete/92495/useless
Del: bad code -- https://master.php.net/note/delete/92495/bad+code
Del: spam -- https://master.php.net/note/delete/92495/spam
Del: non-english -- https://master.php.net/note/delete/92495/non-english
Del: in docs -- https://master.php.net/note/delete/92495/in+docs
Del: other reasons-- https://master.php.net/note/delete/92495
Reject -- https://master.php.net/note/reject/92495
Search -- https://master.php.net/manage/user-notes.php