ClarkKent101
Programmer
Hi Everyone,
Does anyone know if there is a function in ColdFusion that will enable a person to parse a string of text? I've been browsing around some CFDocs and just haven't come across any sort of function or tag... other than parseDateTime() which i cant exactly use to do what i want to do.
My task at the moment is to parse a string of text sent from a textarea control on a form, for some reason when a user types in single quotes around some text within the textarea control it gets sent as double quotes... for example, i type in: 'hello' into the textarea, when the destination page receives the string, it receives it as "hello".. which isn't what i want. So i'm thinking if i could parse the 'hello' string and replace the double quotes that gets sent into single quotes that it would solve the problem. I suppose i could try doing this in JavaScript, i'm just wondering if i can do it in ColdFusion?
Thanks for your time,
- CK
Does anyone know if there is a function in ColdFusion that will enable a person to parse a string of text? I've been browsing around some CFDocs and just haven't come across any sort of function or tag... other than parseDateTime() which i cant exactly use to do what i want to do.
My task at the moment is to parse a string of text sent from a textarea control on a form, for some reason when a user types in single quotes around some text within the textarea control it gets sent as double quotes... for example, i type in: 'hello' into the textarea, when the destination page receives the string, it receives it as "hello".. which isn't what i want. So i'm thinking if i could parse the 'hello' string and replace the double quotes that gets sent into single quotes that it would solve the problem. I suppose i could try doing this in JavaScript, i'm just wondering if i can do it in ColdFusion?
Thanks for your time,
- CK