字符串转义 保存到mysql
$str="what's this";
$en_str=htmlentities($str,ENT_QUOTES);
echo $en_str."
";
echo html_entity_decode($en_str,ENT_QUOTES);
what's this<br/>
what's this
$str="what's this";
$en_str=htmlentities($str,ENT_QUOTES);
echo $en_str."
";
echo html_entity_decode($en_str,ENT_QUOTES);
what's this<br/>
what's this