html记事本(帮助) [英] html notepad (help)
本文介绍了html记事本(帮助)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在这里遇到了html记事本的问题..如图1和图片2所示..当我按下输入时对于一个或两个新行,并在我点击更新!后,
rn出现而不是显示新的行..
有人能教我如何解决这个问题吗?
提前感谢。
Hi, i have a problem here with the html notepad.. as shown in the image1 and image2.. when i press "enter" for one or two new lines,and after i click "Update!",
the "rn" appears instead of showing new lines..
could anyone teach me how to fix this problem?
thanks in advance.
推荐答案
如果我知道更新函数的作用,我可能会查看问题。
I may look into the problem, if I knew what the update function does.
下面是记事本的部分我插入PHP代码。谢谢你的帮助。 :)
The below is the part for notepad that i inserted in php codes. Thanks for your kind help. :)
展开 | 选择 | Wrap | 行号
在第5行上删除斜杠文本(包括\\\\ n的斜杠,然后是变成rn)。并考虑一下你的数据库安全性,目前它没有受到SQL注入的保护。
PS。我假设您使用Latin-1字符集为您的网站吗?
on line 5 you strip the text of slashes (including the slashes for "\r\n" which then become "rn"). and think about your DB security, currently it’s unprotected against SQL Injection.
PS. am I right in the assumption that you use the Latin-1 charset for your website?
这篇关于html记事本(帮助)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文