我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

CKEditor使用属性向HTML标记添加反斜杠

CKEditor is escaping all the HTML attributes when I submit the page with backslashes.

<img alt=\"\" src=\"/ckfinder/userfiles/images/a.jpg\" style=\"width: 600px; height: 450px;\" />  

It's working fine in my local machine and the issue is happening only in the live server.

What could be the problem?

Fixed it using sample code from php Manual

function strip_magic_slashes($str) {    return get_magic_quotes_gpc() ? stripslashes($str) : $str; }

近期文章

  • ZF:ZEND_NAVIGATION_PAGE - 页面未获得活动状态
  • 为什么我的查询没有执行/为什么不是添加到我的数据库的记录?
  • 替换符号奇怪的情况
  • 使用php或数据库从文件夹中读取图像
  • CSS Sprites和PHP使用动态菜单突出显示不使用循环功能
  • 我可以在PHP中更改坐在函数内的局部变量的值吗?
  • 有问题传递值并使用jQuery输出它们
  • 为什么codeigniter会给我这个错误?
  • Wordpress - 用lightbox替换attachment.php
  • 用AJAX传递几个值?
  • 动态Twitter关注按钮
  • 什么导致下载文件大小限制? [关闭]
  • 页面未找到:在Apache服务器上运行php文件
  • JavaScript函数没有执行
  • 需要帮助将ID写入MySQL数据库
  • 显示基于Referrer URL的链接
  • codeigniter查看设置问题
  • PHP Parse错误 - 意外$ end [关闭]
  • 使用复选框在列表中显示SQL数据
  • Wordpress截断标题

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华