PageRenderTime 26ms CodeModel.GetById 11ms RepoModel.GetById 1ms app.codeStats 0ms

/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
Possible License(s): Apache-2.0, CPL-1.0
  1. <cfcomponent extends="wheelsMapping.Test">
  2. <cffunction name="setup">
  3. <cfset loc.controller = controller(name="dummy")>
  4. <cfset loc.content = "<b>This ""is"" a test string & it should format properly</b>">
  5. </cffunction>
  6. <cffunction name="test_should_escape_html_entities">
  7. <cfset loc.e = loc.controller.h(loc.content)>
  8. <cfset loc.r = "&lt;b&gt;This &quot;is&quot; a test string &amp; it should format properly&lt;/b&gt;">
  9. <cfset assert("loc.e eq loc.r")>
  10. </cffunction>
  11. </cfcomponent>