Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8870423
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:43:36+00:00 2026-06-14T17:43:36+00:00

I am using this code to call forth the description from a website: set

  • 0

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&#39;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&#39;t act fast. Dermot Mulroney, Dallas Roberts, and Frank Grillo co-
star."

How do I get the quotes to format correctly as ' instead of &#39; upon return?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T17:43:37+00:00Added an answer on June 14, 2026 at 5:43 pm

    ASObjC Runner has some useful function to encode/decode text.

    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
    tell application "ASObjC Runner" to set blurb3 to modify string blurb2 so it is unencoded for XML
    

    or you can continue using text item delimiters:

    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 "&#39;"
    set blurb2 to text items of blurb2
    set AppleScript's text item delimiters to "'"
    set blurb2 to blurb2 as text
    set AppleScript's text item delimiters to astid
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

hello i am using this Page.ClientScript.RegisterStartupScript() to call a javascript function from vb code
IN my application i am using this code to Call my First Class Xib.Here
I'm using this code to get a drawable and use in a SetCompoundDrawablesWithIntrinsicBounds call:
All the examples I can find using DLLImport to call C++ code from C#
I am using this code to make call Intent callIntent = new Intent(Intent.ACTION_CALL, Uri.parse(tel:
I'm trying to call this api http://www.wikirandom.org/json Using this code - $.getJSON('http://www.wikirandom.org/json', function(data) {
Using this code, i am able to send a notification to my own device.
Using this code to zip a folder and it works perfect on small files
Using this code var html='<div class=somediv></div>'; var target=document.getElementById('contentArea'); target.appendChild(html); I'm getting Uncaught Error: NOT_FOUND_ERR:
Using This code: I am tring to fill the page with the data and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.