Previous | Index | Next |
String manipulation methods
unsmartQuotedFrom:
Converts typographer's quote marks into straight quote marks
+ (id)unsmartQuotedFrom:(id)listOrString
listOrString = a string or list of strings
If passed a string, returns the new string; if passed a list, an array of new strings.
Version 1.0.0
use scripting additions
use framework "Foundation"
use script "BridgePlus"
load framework
set aString to "It’s “one” two ‘three’"
set theResult to current application's SMSForder's unsmartQuotedFrom:aString
ASify from theResult
--> "It's \"one\" two 'three'"
theResult as text
--> "It's \"one\" two 'three'"