[thelist] two few CF formatting function ?'s

Raymond Camden jedimaster at macromedia.com
Mon Mar 25 15:48:01 CST 2002


> -----Original Message-----
> From: thelist-admin at lists.evolt.org
> [mailto:thelist-admin at lists.evolt.org] On Behalf Of Erik Mattheis
> Sent: Monday, March 25, 2002 4:32 PM
> To: thelist at lists.evolt.org
> Subject: [thelist] two few CF formatting function ?'s
>
>
> What is StripCR() supposed to do ... it doesn't seem to do
> anything for me.

Well, I think the docs are clear enough:

"Deletes return characters from a string. "

> What's the best way to escape special characters entered into
> forms? A RegEx? What is it?

Yes, I would use a regex for this. Be aware that we have some common
ones already done in the language, and at cflib.org. Example - if you
want to escape html, use htmlEditFormat or htmlCodeFormat. If you want
to remove the HTML, there is a UDF for this at cflib.org.

-raymond camden




More information about the thelist mailing list