/wheels/tests/view/text/striplinks.cfc
ColdFusion CFScript | 15 lines | 12 code | 3 blank | 0 comment | 1 complexity | 94a24330984e117bb6fe4d022ac7e6fa MD5 | raw file
Possible License(s): Apache-2.0, CPL-1.0
- <cfcomponent extends="wheelsMapping.Test">
-
- <cffunction name="setup">
- <cfset loc.controller = controller(name="dummy")>
- <cfset loc.args = {}>
- <cfset loc.args.html = 'this <a href="http://www.google.com" title="google">is</a> a <a href="mailto:someone@example.com" title="invalid email">test</a> to <a name="anchortag">see</a> if this works or not.'>
- </cffunction>
-
- <cffunction name="test_all_links_should_be_stripped">
- <cfset loc.e = loc.controller.striplinks(argumentcollection=loc.args)>
- <cfset loc.r = "this is a test to see if this works or not.">
- <cfset assert("loc.e eq loc.r")>
- </cffunction>
-
- </cfcomponent>