I am trying to find features that have value in a field that has an apostrophe. How does one do this?
Here is what I have, but it won't work because of the apostrophe in Can't:
else if ( $feature["media_type"] == 'Can't Find Curb Tie') {
return "Can't Find Curb Tie"
}
Solved! Go to Solution.
Try changing the single quotes to double quotes around the string you are trying to find
"Can't Find Curb Tie"
You can use "\" to escape individual characters, too, though simply swapping double quotes is probably simpler.
'Can\'t Find Curb Tie'
Try changing the single quotes to double quotes around the string you are trying to find
"Can't Find Curb Tie"
You can use "\" to escape individual characters, too, though simply swapping double quotes is probably simpler.
'Can\'t Find Curb Tie'