Removing a Mysql type Quote from the list
-
23-12-2019 - |
Question
I have a list and i need to remove the quote from the list, any build-in function or custom function available for removing the mysql type quote from the list. Here is the list
`BODY`,`BY`,`CREATED`,`DEPARTMENT_ID`,`ID`,`MODIFIED`,`PARENT`,`PRIORITY`,`STATUS`,`SUBJECT`,`UPLOADS`
Solution
ListDeQualify looks like a lot of work if you just need to strip out the ` characters. Why not simply use replace():
<cfset mylist = "`BODY`,`BY`,`CREATED`,`DEPARTMENT_ID`,`ID`,`MODIFIED`,`PARENT`,`PRIORITY`,`STATUS`,`SUBJECT`,`UPLOADS`">
<cfset mylist = replace(mylist, "`", "", "ALL")>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow