Can AppleScriptObjC Decode HTML Entities?

Hey Folks,

Does AppleScriptObjC have a method for decoding HTML entites?

My use-case at the moment is a path string pulled from the XML of a Keyboard Maestro action.

~/Documents/Application Support Files/Keyboard Maestro User Files/AppleScript Support/Global/@WebScrape Extract Text & URL from Selected Hyperlink or Text @KM @JS.js

The entity in question here is &amp, although I’d like to be able to robustly deal with any entity.

TIA.

-Chris

If you use NSXML to extract it, it should happen automatically.