2
<?php
$info = " 亜 and ' and \" ";
$info=str_replace(array("'","\""),array("'","""),$info);
echo "<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>";
echo "<input id=info name=info value='{$info}' >";
?>
這工作,BUT:?有沒有像$info=htmlentities($info,ENT_QUOTES)
其中保留的UTF-8顯示一個整潔方法(ヶ輛不)
優秀。謝謝。 – ajo 2010-11-10 13:49:55
@ajo:歡迎:) – Sarfraz 2010-11-10 13:50:16