public final class JsIdentifierOrdainer extends Object
This is based on http://mathiasbynens.be/notes/javascript-identifiers
| Modifier and Type | Method and Description |
|---|---|
static SanitizedContent |
jsIdentifier(String identifier)
Validates that
identifier matches a safe pattern for JS identifiers and ordains the
value as JS. |
public static SanitizedContent jsIdentifier(String identifier)
identifier matches a safe pattern for JS identifiers and ordains the
value as JS.
TODO: this appears to be redundant with some code in JsSrcUtils.