T...">

How to encode an HTML form in coldfusion?

I am new to coldfusion.

I have a 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 display of a text value on the page test2.cfm. E.g. if we type <br> in the text box, the test2 page will display it as html, and I want to stop parsing, and it should display as text.

thanks

+4
source share
2 answers

This is HTMLEditFormat (), not code.

+10
source

Using #htmlCodeFormat (form.txt1) #

+7
source

All Articles