[ create a new paste ] login | about

Link: http://codepad.org/jQopjG0k    [ raw code | output | fork ]

PHP, pasted on Jan 8:
1
2
3
4
5
<?php
$str = '<!--<script>it’s all escaped now. Better not have two tags!';

echo json_encode($str);
?>


Output:
1
"<!--<script>it\u2019s all escaped now. Better not have two tags!"


Create a new paste based on this one


Comments: