NSString(SLJavaScript) Category Reference
Declared in | SLStringUtilities.h |
Overview
The methods in the NSString (SLJavaScript)
category facilitate the construction
of JavaScript scripts for SLTerminal
to evaluate.
Tasks
-
– slStringByEscapingForJavaScriptLiteral
Returns a representation of the receiver that has been escaped as necessary to substitute the receiver into a JavaScript string literal.
Instance Methods
slStringByEscapingForJavaScriptLiteral
Returns a representation of the receiver that has been escaped as necessary to substitute the receiver into a JavaScript string literal.
- (NSString *)slStringByEscapingForJavaScriptLiteral
Return Value
A string that can be safely substituted into a JavaScript string literal.
Discussion
The result can be substituted into a single- or double-quoted literal.
Declared In
SLStringUtilities.h