Previous Index Next

BridgePlus.framework, SMSForder Class Methods

Category

String manipulation methods

Method

unencodedForXMLFrom:

Summary

Decode the five reserved XML characters only > < & " '

Signature

+ (id)unencodedForXMLFrom:(id)listOrString

Parameters

listOrString = a string or list of strings

Result

If passed a string, returns the unencoded string; if passed a list, an array of unencoded strings.

Availability

Version 1.0.0

Notes

 

Sample

use scripting additions

use framework "Foundation"

use script "BridgePlus"

load framework


set aString to "&gt; &lt; &amp; &quot; &apos;"

set theResult to current application's SMSForder's unencodedForXMLFrom:aString

ASify from theResult

--> "> < & \" '"

theResult as text

--> "> < & \" '"


Click here to open script in a script editor