[ create a new paste ] login | about

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

PHP, pasted on Feb 21:
1
2
3
4
5
<?php

$str = 'Hot & Cold and On &amp; Off';

var_dump(htmlentities($str , ENT_COMPAT, 'UTF-8', FALSE));


Output:
1
string(31) "Hot &amp; Cold and On &amp; Off"


Create a new paste based on this one


Comments: