/wheels/tests/view/text/striptags.cfc
http://cfwheels.googlecode.com/ · ColdFusion CFScript · 15 lines · 12 code · 3 blank · 0 comment · 1 complexity · 8028574a2bef61e7a5524fd46c76ce6b MD5 · raw file
- <cfcomponent extends="wheelsMapping.Test">
-
- <cffunction name="setup">
- <cfset loc.controller = controller(name="dummy")>
- <cfset loc.args = {}>
- <cfset loc.args.html = '<h1>this</h1><p><a href="http://www.google.com" title="google">is</a></p><p>a <a href="mailto:someone@example.com" title="invalid email">test</a> to<br/><a name="anchortag">see</a> if this works or not.</p>'>
- </cffunction>
-
- <cffunction name="test_all_tags_should_be_stripped">
- <cfset loc.e = loc.controller.stripTags(argumentcollection=loc.args)>
- <cfset loc.r = "thisisa test tosee if this works or not.">
- <cfset assert("loc.e eq loc.r")>
- </cffunction>
-
- </cfcomponent>