kindeditor提交html保存到数据库的时候,双引号前面都会加上一个"\",这时候再取出来就是有问题的,所以保存之前需要把提交过来的html中去掉"\",用php的自带函数:stripslashes()
stripslashes() 函数删除由 addslashes() 函数添加的反斜杠。
提示:该函数可用于清理从数据库中或者从 HTML 表单中取回的数据。
stripslashes(string)
参数 | 描述 |
---|---|
string | 必需。规定要检查的字符串。 |
返回值: | 返回已剥离反斜杠的字符串。 |
PHP 版本: | 4+ |
vue2 Implicit conversion from float int loses precision php8Implicit Mysql8新增用户,mysql8配置权限,mysql8配置,mysql8配置文件 Linux命令,scp,scp命令,Linux复制 git commit git add centos git 搭建FTP,Linux FTP,禁止FTP登录ssh 上传文件,阿里云OSS上传,文件上传到OSS,OSS文件上传,OSS上传 微信支付,微信支付V3,PHP微信支付,微信nativePay支付,微信jsapi支付 微信支付,微信支付V3,PHP微信支付 bootstrap4 modal, lavarel The subversion command line tools are no longer provided by Xcode. 银联支付,tp5.1银联支付 支付宝即时到账,PHP支付宝 system libzip must be upgraded to version >= 0.11 CMake 3.0.2 or higher is required