I am trying to replace a pipe character used as a delimiter in a string. The string comes back with the pipe as the html entity code like this:
Unassigned|Scheduled|Tech on Site
Now, I'm trying to replace and/or split this string into a string list, but I can't seem to get the replace or split to work.
string s = String.valueOf(params.get('status')); string newString = s.replace('|', '|'); String strs = newString.split('|');
I get the following result:
strs (, U, n, a, s, s, i, g, n, e, ...)
Thanks for any help.