首页 > 技术文章 > 黄聪:wordpress向mysql字段中保存html代码(使用add_option()方法),然后无法显示出问题

huangcong 2013-10-20 17:22 原文

你可以把" 引号去掉了再进库,或者使用 stripslashes_deep() 

<?php
$str = "Is your name O\'reilly?";

// 输出: Is your name O'reilly?
echo stripslashes($str);
?>  


推荐阅读