CKeditor link 没有按应有的方式保存
CKeditor link not saved as it should be
我在网站上使用 CKeditor。当我试图在我写给数据库的文本中保存一些 link 时。它以不同的方式保存。例如:
<a href=\"http://example.com/images/somefolder/en.pdf\">
就这样保存了,就算我这样输入也是
<a href="http://example.com/images/somefolder/en.pdf">
我没有使用任何插件或类似的东西。什么都没改,直接下载就行了
我已经修好了。需要在 PHP 中使用 stripshlashes() 函数。它以不同的方式保存在我的数据库中。
我在网站上使用 CKeditor。当我试图在我写给数据库的文本中保存一些 link 时。它以不同的方式保存。例如:
<a href=\"http://example.com/images/somefolder/en.pdf\">
就这样保存了,就算我这样输入也是
<a href="http://example.com/images/somefolder/en.pdf">
我没有使用任何插件或类似的东西。什么都没改,直接下载就行了
我已经修好了。需要在 PHP 中使用 stripshlashes() 函数。它以不同的方式保存在我的数据库中。