RedBeanPHP不使用html实体存储bean


RedBeanPHP is not storing a bean with html entity

如果我在文本区中输入rsquo;,它将通过R::store()保存到数据库中。

如果我编辑这篇文章,它显示',如果我点击保存,RedBean将剥离报价并存储空bean。

我能做什么?

在返回R::store()之前对其进行编码参见htmlentities.

然而,如果你从来没有调用html_entity_decode自己,我的猜测是,你在其他地方犯了一些错误,你的'是该错误的结果。