$orig = "I'll "walk" the <b>dog</b> now";
$a = htmlentities($orig);
$b = html_entity_decode($a);
echo $a; // I'll "walk" the <b>dog</b> now
echo $b; // I'll "walk" the <b>dog</b> now
or you can use your custom function if you dont want html tag to convert into unicode :
$text = str_replace(array(""", "&"), array(""", "&"), $text);
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…