In ColdFusion MX (6.1) when I have a less than or greater than characters (< >) in my form fields (both text and textarea) they display OK but when I try to display it using base HTML they "disappear".
If I have an html form and it contains: < or > I can see these characters is the form tags.
If I output the values of these fields using <cfoutput>, I see all characters in the fields EXCEPT < and > characters.
I guess I was hoping\looking for a ColdFusion function to retain these. In SQL for example, ColdFusion sometimes removes single quotes so I use the CF function preserveSingleQuotes().
the browser is going to assume you're trying to use a "would" tag. as we know browsers ignore tags they don't understand. you should get "this is my new car" in the web page. however if you look at the source you'll see the whole thing.
when you save it to the db you should replace < and > with < and > to work properly. if you also have html in there... well... don't do stuff like the above example...
We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.