0
$this->car_features = stripslashes(html_entity_decode($rows['features']));
这是正确的吗?谁可以确认?提前谢谢了!同时使用stripslashes和html_entity_decode
$this->car_features = stripslashes(html_entity_decode($rows['features']));
这是正确的吗?谁可以确认?提前谢谢了!同时使用stripslashes和html_entity_decode
如果你想要做的是解码HTML实体,然后去掉斜杠,那么是的,它会这样做。
为什么斜杠在那里呢?
从你的问题,我可以推断出你正在寻找消毒数据,以逃避所有特殊字符和存储在分贝?假设作为一种情况,如果您使用PHP 5.2或更高版本,请查找PHP Filters and Sanitizers。