kindeditor提交html保存到数据库的时候,双引号前面都会加上一个"\",这时候再取出来就是有问题的,所以保存之前需要把提交过来的html中去掉"\",用php的自带函数:stripslashes()
stripslashes() 函数删除由 addslashes() 函数添加的反斜杠。
提示:该函数可用于清理从数据库中或者从 HTML 表单中取回的数据。
stripslashes(string)
| 参数 | 描述 |
|---|---|
| string | 必需。规定要检查的字符串。 |
| 返回值: | 返回已剥离反斜杠的字符串。 |
| PHP 版本: | 4+ |
nginx资源404 nginx无法访问静态资源 Mac nginx PHP安装Imagick Imagick 多版本PHP环境安装Imagick SSL免费续签 SSL证书续签 SSL证书领取 SSL免费 SSL证书 link must be in js secure domain list uniapp分享 wx.config is not a function 微信分享 pyenv-virtualenv brew install pyenv-virtualenv ModuleNotFoundError: No module named 'requests' python报错 python环境