/wheels/tests/view/text/h.cfc
http://cfwheels.googlecode.com/ · ColdFusion CFScript · 14 lines · 11 code · 3 blank · 0 comment · 0 complexity · 4e8689b337c404330abbb7e6720180d6 MD5 · raw file
- <cfcomponent extends="wheelsMapping.Test">
-
- <cffunction name="setup">
- <cfset loc.controller = controller(name="dummy")>
- <cfset loc.content = "<b>This ""is"" a test string & it should format properly</b>">
- </cffunction>
-
- <cffunction name="test_should_escape_html_entities">
- <cfset loc.e = loc.controller.h(loc.content)>
- <cfset loc.r = "<b>This "is" a test string & it should format properly</b>">
- <cfset assert("loc.e eq loc.r")>
- </cffunction>
-
- </cfcomponent>