common
Extends:
Static Method Summary
Static Public Methods | ||
public static | ||
public static | ||
public static |
htmlEscape(str: string): string Escape special characters using HTML entities |
|
public static |
htmlUnescape(str: string): string Remove HTML entities from string |
|
public static |
Merge two objects recursively |
|
public static |
Template string beautifier |
|
public static |
Escape and quote a string |
|
public static |
uniqueList(list: Array): Array Remove duplicate items from a list |
|
public static |
Remove quotes and escape sequence from string |
Static Public Methods
public static b64decode(str: string): * source
Unicode safe b64 decoding https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/Base64_encoding_and_decoding#The_Unicode_Problem
Params:
Name | Type | Attribute | Description |
str | string |
Return:
* |
public static b64encode(str: string): * source
Unicode safe b64 encoding https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/Base64_encoding_and_decoding#The_Unicode_Problem
Params:
Name | Type | Attribute | Description |
str | string |
Return:
* |
public static htmlEscape(str: string): string source
Escape special characters using HTML entities
Params:
Name | Type | Attribute | Description |
str | string |
public static htmlUnescape(str: string): string source
Remove HTML entities from string
Params:
Name | Type | Attribute | Description |
str | string |
public static mergeHash(obj1: Object, obj2: Object): * source
Merge two objects recursively
Return:
* |
public static mockup(obj: Object): string source
Template string beautifier
Params:
Name | Type | Attribute | Description |
obj | Object |
public static quote(s: *, html: boolean): * source
Escape and quote a string
Params:
Name | Type | Attribute | Description |
s | * | String to be quoted |
|
html | boolean | Identifies whether the string must be HTML safe |
Return:
* |