I am using this code to call forth the description from a website:
set astid to AppleScript's text item delimiters
set startHere to "<div id=\"doc-original-text\" itemprop=\"description\">"
set stopHere to "</div>"
set mysource_html to do shell script "curl https://play.google.com/store/movies/details?id=H9EKG4-JHSw"
set AppleScript's text item delimiters to startHere
set blurb1 to text item 2 of mysource_html
set AppleScript's text item delimiters to stopHere
set blurb2 to text item 1 of blurb1
set AppleScript's text item delimiters to astid
blurb2
This is what it returns:
"Liam Neeson stars in producer/director Joe Carnahan's tense adventure thriller
about a group of tough-as-nails oil rig workers who must fight for their lives in the
Alaskan wilderness after their airplane crashes miles from civilization. With supplies
running short and hungry wolves closing in, the shaken survivors face a fate worse than
death if they don't act fast. Dermot Mulroney, Dallas Roberts, and Frank Grillo co-
star."
How do I get the quotes to format correctly as ' instead of ' upon return?
ASObjC Runner has some useful function to encode/decode text.
or you can continue using text item delimiters: