FCKeditor 出现额外不需要的斜线

发布于 2024-09-01 17:24:19 字数 66 浏览 7 评论 0原文

当我尝试使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

榕城若虚 2024-09-08 17:24:19

执行 phpinfo() 并查看是否启用了魔术引号 - 听起来就是这样。如果它们被启用(对你的主机来说是耻辱),那么你可以在目录中创建一个 php.ini 文件并放入以下行:

; Magic quotes for incoming GET/POST/Cookie data.
magic_quotes_gpc = Off

这应该可以解决你的问题。您可能需要使用 .htaccess 文件,具体取决于您的虚拟主机设置,在这种情况下您将使用以下行:

php_flag magic_quotes_gpc Off

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:

; Magic quotes for incoming GET/POST/Cookie data.
magic_quotes_gpc = Off

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_flag magic_quotes_gpc Off
玩套路吗 2024-09-08 17:24:19

请使用 PHP 的 stripslashes 函数

stripslashes($content);

Please use PHP's stripslashes function

stripslashes($content);
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文