FCKeditor 出现额外不需要的斜线
当我尝试使用 FCKeditor 保存文本时,数据库中保存的文本中添加了太多不需要的斜杠。 提前感谢任何解决方案、建议
When I try to save text using FCKeditor, too many extra unwanted slashes gets added to the text saved in database.
thanks in adveance for any solution,suggestion
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
执行
phpinfo()
并查看是否启用了魔术引号 - 听起来就是这样。如果它们被启用(对你的主机来说是耻辱),那么你可以在目录中创建一个 php.ini 文件并放入以下行:这应该可以解决你的问题。您可能需要使用 .htaccess 文件,具体取决于您的虚拟主机设置,在这种情况下您将使用以下行:
do a
phpinfo()
and see if magic quotes are enabled - thats what it sounds like. If they are enabled (shame on your host) then you can make a php.ini file in the directory and put in the lines:and that should fix you right up. You may need to use a .htaccess file depending on your webhost setup, in which case you'd use the line:
请使用 PHP 的
stripslashes
函数Please use PHP's
stripslashes
function