Hello All,
I need your advice on strings and replaceNoString() please. In a variable I am trying to replace the string &amp with &. My replace funcion is not working, i.e. no errors but does not replace the desired string.
What can you suggest?
Thanks,
Michael42
I need your advice on strings and replaceNoString() please. In a variable I am trying to replace the string &amp with &. My replace funcion is not working, i.e. no errors but does not replace the desired string.
What can you suggest?
Code:
<cffunction name="replaceBadCharacters">
<cfargument name="sOldString">
<cfset sNewString = replaceNoCase(sOldString,"&amp","&")>
<cfreturn sNewString>
</cffunction>
Thanks,
Michael42