参考了:【解决】ThinkPHP整合Html编辑器时出现自动转义的问题

遇到问题也是保存到数据库中的内容,会转义成“\"”

使用

$data['content'] = stripslashes(htmlspecialchars_decode($_POST['content']));

可以将"\""的转义处理好。

相关文章:

  • 2022-01-12
  • 2021-07-25
  • 2022-12-23
  • 2022-12-23
  • 2021-07-14
  • 2021-12-10
  • 2021-12-10
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-05
  • 2021-09-28
  • 2022-01-23
相关资源
相似解决方案