<textarea>正在破坏页面

时间:2016-09-01 07:23:11

标签: php html wordpress

&lt; p&gt;我正在尝试在Avada主题的CodeBlock中插入infusionsoft联系表单代码。&lt; / p&gt; &lt; p&gt;但是表格中有一个textarea,代码为&lt; / p&gt; &lt; pre&gt;&lt; code&gt;&lt; div class =“infusion-field”&gt;     &lt; label for =“inf_custom_Comments”&gt;消息*&lt; / label&gt;     &lt; textarea cols =“24”id =“inf_custom_Comments”name =“inf_custom_Comments”rows =“5”&gt;&lt; / textarea&gt; &LT; / DIV&GT; &LT; /代码&GT;&LT; /预&GT; &lt; p&gt;此字段导致问题。它打破了页面,包括页脚代码在内的所有页面代码都以文本形式显示在textarea中。以下是截图&lt; / p&gt; &lt; p&gt;&lt; a href =“http://oi68.tinypic.com/2mn166a.jpg”rel =“nofollow”&gt; http://oi68.tinypic.com/2mn166a.jpg< / a&gt;&lt; / p为H. &lt; p&gt;我查看了网页来源,这就是它的样子:&lt; / p&gt; &lt; pre&gt;&lt; code&gt;&lt; div class =“infusion-field”&gt;     &lt; label for =“inf_custom_Comments”&gt;消息*&lt; / label&gt;     &lt; textarea cols =“24”id =“inf_custom_Comments”name =“inf_custom_Comments”rows =“5”&gt; &安培; LT; / textarea的&GT;&LT; / DIV&GT; &LT; /代码&GT;&LT; /预&GT; &lt; p&gt;现在这表明textarea没有正确关闭。如何解决这个问题? &LT; / p为H. &lt; p&gt;表单正在某些网页上工作,导致其他网页出现问题。&lt; / p&gt;

1 个答案:

答案 0 :(得分:0)

您必须使用某种类型的所见即所得编辑器,它将您的html角括号转换为unicode字符。请使用普通的html编辑器来解决这个问题。