简体   繁体   English

在textarea中显示的html代码出现html代码的问题,例如 <p> 和&lt;br&gt;

[英]problem with html codes showing in textarea html code such as <p> and < br>

我正在做一些相当基本的事情-做一个<textarea cols="60" rows="35"> textarea可滚动文本框...。即时消息是html不断弹出,而不管它是用wordpress html还是文本编写的模式-在wordpress上的文本模式下,当选择了所选的<br> ,它将选择所有文本,因此我无法删除该文本,否则它将删除所有文本。

I suspect you aren't "closing" the textarea tag: 我怀疑您没有“关闭” textarea标签:

<textarea name="thingy" cols=10 rows=5></textarea>
                                        ^^^^^^^^^^^

It's a bit unclear to me what your problem is exactly. 我不清楚您的问题到底是什么。 If you posted the problematic html we could use an editor to play around with it and try and help find a solution. 如果您发布了有问题的html,我们可以使用编辑器来解决它,并尝试寻找解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM