Question
UDF Help
I am trying to write a UDF for replacing some characters from
my string. I am using replace list but somehow its just replacing
only first character but not the others in the list
Here is what I am trying to do
<cfscript>
function Rep(theString){
var remove_char_list = "&, |, \, >, <, :";
var replace_char_list = "and, ' ''';
return ReplaceList(theString, remove_char_list, replace_char_list);
}
</cfscript>
basically & to be removed and (XML), and all other with empty strings, with this it just replace all occurences of & whereas others are not being replaced
Any comments??
Here is what I am trying to do
<cfscript>
function Rep(theString){
var remove_char_list = "&, |, \, >, <, :";
var replace_char_list = "and, ' ''';
return ReplaceList(theString, remove_char_list, replace_char_list);
}
</cfscript>
basically & to be removed and (XML), and all other with empty strings, with this it just replace all occurences of & whereas others are not being replaced
Any comments??
