如何在ColdFusion中编码HTML表单? [英] How to encode HTML form in coldfusion?
本文介绍了如何在ColdFusion中编码HTML表单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
< form action =test2.cfmmethod =post>
输入您的姓名并点击提交:< br>
< input type =Textname =txt1>
< input type =Submitname =value =submit>
< / form>
and test2.cfm
< cfoutput>
success
#form.txt1#
< a href =test1.cfm> back< / a>
< / cfoutput>
现在我想知道我们是否可以在test2.cfm页面中对文本值的显示进行编码。
例如。如果我们在文本框中键入< br>
,test2页面将渲染为html,我想停止渲染,它应该显示为文本。
感谢
解决方案
这是HTMLEditFormat(),而不是代码。 $ b
I'm new to coldfusion.
I have page called test1.cfm
<form action = "test2.cfm" method = "post">
Type your name and hit submit:<br>
<input type = "Text" name = "txt1">
<input type = "Submit" name = "" value = "submit">
</form>
And test2.cfm
<cfoutput>
success
#form.txt1#
<a href="test1.cfm">back</a>
</cfoutput>
Now I want to know if we can encode the displaying of text value in test2.cfm page.
For eg. if we type <br>
in the textbox, test2 page will render it as html, and I want to stop rending and it should display as text.
Thanks
解决方案
It's HTMLEditFormat(), not code.
这篇关于如何在ColdFusion中编码HTML表单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文