Possible Duplicate:
JSON: why are forward slashes escaped?
The function argument below is a string run through json_encode()
. I see that the forward slash in http://
is escaped to http:\/\/
.
Obviously it is a special character when used like this <some_tag></some_tag>
but only when used in that structure.
There is no immediate problem..but I need to understand escapes to make some code updates.
<script type='text/javascript'>Arc.ViewHBookmark('[{"id":"1","0":"1","title":"cybercoders","1":"cybercoders","url":"http:\/\/cybercoders.com","2":"http:
php.net - json_encode
Related