I’m getting a value back from the server that contains a double quote in it. I need to populate an input tag with the value.
I’ve tried using escape(myVariable), but that converts the spaces to %20, etc.
I suppose I could write an if/then that says if there’s a double quote in the field, then use value=”, but then what do I do if they have both double and single quotes in the field?
1 Answer