I’m trying to build a string that will in the end result contain double quotes within it like so:
If I do this:
set startxmlstr to “<AtlasEntry id="princess2"”
I get exactly that on return
<AtlasEntry id="princess2"
How do I code this so i don’t get the backslashes in my end result?
Thanks
Hi. You’ve already returned the desired result with your startxmlstr statement, but you are confusing Script Editor’s result returned with the real-world string. Any real quote displays as “"” in the editor. You can see the actual string, if you place it in a dialog.
set startxmlstr to display dialog "<AtlasEntry id=\"princess2\""
--Or the equivalent with the constant:
set startxmlstr to display dialog "<AtlasEntry id=\"princess2" & quote