So, I have a taxtarea where the user makes a blog post but when the user submits it their line breaks get replaced with a 'rn' and I don't know why. I thought it was the php script but when I rewrote it and after taking away the str_replaces' it still replaced a new line with a rn.

所以,我有一个taxtarea用户发布博客文章,但当用户提交它时,他们的换行符被'rn'取代,我不知道为什么。我认为这是PHP脚本但是当我重写它并且在取走str_replaces之后它仍然用rn替换了一个新行。

What is happening?

怎么了?

2 个解决方案

#1


0

Try removing any stripslahes(). Stripslashes removes any backslashes and forward slashes. For example, line breaks are being sent as \n or \r and the stripslashes() takes away the backslashes in those, so that's why it says 'rn'.

尝试删除任何striplahes()。 Stripslashes删除任何反斜杠和正斜杠。例如,换行符将被发送为\ n或\ r \ n而stripslashes()会删除那些换行符中的反斜杠,因此它就是“rn”的原因。

I had this very problem, and this solution helped me. Good luck!

我有这个问题,这个解决方案对我有帮助。祝好运!

更多相关文章

  1. 使用pregex提取最后2个斜杠之间的内容
  2. PHP XAMPP配置PHP环境和Apache80端口被占用解决方案
  3. mysql主从同步报slave_sql_running:no的解决方案
  4. win7下Django的MySql安装,问题解决方案
  5. mysql 事物没提交导致事物一直运行解决方案
  6. 无法连接远程MySQL数据库的解决方案
  7. [征集] MySQL交叉表解决方案及散分
  8. PHP MYSQL 出现中文乱码的解决方案
  9. Amoeba for MySQL---分布式数据库Proxy解决方案

随机推荐

  1. 查询通讯录拨号发短信
  2. Android编译系统详解(一)
  3. Android Shell Cmd
  4. 上接系出名门Android(8) - 控件(View)之T
  5. Android 博客园客户端 (一) 基本界面
  6. Android: 系统默认音量
  7. android 自定义闪退Dialog 收集闪退信息
  8. How to Create QuickAction Dialog in An
  9. android 软件源码
  10. Android照相功能驱动层中HAL的实现(基于OK