- Source:
Methods
add_Class(newClass) → {string}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
newClass |
string |
Returns:
- Type
- string
base64decode() → {string}
- Source:
Returns:
- Type
- string
base64decodeBytes() → {Uint8Array}
- Source:
Returns:
- Type
- Uint8Array
base64decodeBytesArray() → {Array.<number>}
- Source:
Returns:
- Type
- Array.<number>
base64decodeClean() → {string}
- Source:
Returns:
- Type
- string
base64encode() → {string}
- Source:
Returns:
- Type
- string
base64encodeBytes() → {Uint8Array}
- Source:
Returns:
- Type
- Uint8Array
base64encodeBytesArray() → {Array.<number>}
- Source:
Returns:
- Type
- Array.<number>
base64encodeClean() → {string}
- Source:
Returns:
- Type
- string
buildQuery() → {Object.<string, (string|Array.<string>)>}
- Source:
Returns a list of parameters included in a string
Example
'my-demo testIndex: 23 with testValue: "demo content"'.buildQuery()
// returns
{
"_keys": [
"testindex",
"testvalue"
],
"_": "my-demo",
"testindex": "23 with",
"testvalue": "\"demo content\""
}
Returns:
- Type
- Object.<string, (string|Array.<string>)>
buildSearchArray() → {Array.<string>}
- Source:
Returns a list of parameters included in a string
Example
'"this is" "list of fragments"'.buildSearchArray()
// returns
[
"this is",
"list of fragments"
]
Returns:
- Type
- Array.<string>
cleanTags() → {string}
- Source:
remove risky tags from HTML Code: comments, script, iframe, style, object, noscript, frame, frameset
Returns:
- Type
- string
decodeURI() → {string}
- Source:
Returns:
- Type
- string
decryptAes(password, sizeopt) → {string}
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
password |
string | |||
size |
number |
<optional> |
128
|
Returns:
- Type
- string
decryptTea(password) → {string}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
password |
string |
Returns:
- Type
- string
del_Class(newClass) → {string}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
newClass |
string |
Returns:
- Type
- string
encodeURI() → {string}
- Source:
Returns:
- Type
- string
encryptAes(password, sizeopt) → {string}
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
password |
string | |||
size |
number |
<optional> |
128
|
Returns:
- Type
- string
encryptTea(password) → {string}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
password |
string |
Returns:
- Type
- string
escape() → {string}
- Source:
Returns:
- Type
- string
escapeHex() → {string}
- Source:
Returns:
- Type
- string
fnd_Class(newClass) → {boolean}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
newClass |
string |
Returns:
- Type
- boolean
fromHex() → {string}
- Source:
Returns:
- Type
- string
fromHtml() → {string}
- Source:
decode from HTML ( works in Browser )
Returns:
- Type
- string
lcfirst(lengthopt) → {string}
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
length |
number |
<optional> |
1
|
how many first chars to be transformed to uppercase |
Returns:
- Type
- string
markdown() → {string}
- Source:
Returns:
- Type
- string
match_str(rule, flagsopt) → {Array|object}
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
rule |
string | reg exp rule in string format |
|
flags |
string |
<optional> |
reg exp flags |
Returns:
- Type
- Array | object
md5() → {string}
- Source:
Returns:
- Type
- string
parseUrl(modeopt) → {object}
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
mode |
"get_vars" | boolean |
<optional> |
Returns:
- Type
- object
sha1(isUtf8opt) → {string}
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
isUtf8 |
boolean |
<optional> |
true
|
Returns:
- Type
- string
sha256(isUtf8opt) → {string}
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
isUtf8 |
boolean |
<optional> |
true
|
Returns:
- Type
- string
subs(index, count) → {string}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
index |
number | |
count |
number |
Returns:
- Type
- string
subs(index, lastIndexopt) → {string}
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
index |
number | ||
lastIndex |
number |
<optional> |
Returns:
- Type
- string
swp_case() → {string}
- Source:
Returns:
- Type
- string
toArrayBufferFromUtf8() → {ArrayBuffer}
- Source:
Returns:
- Type
- ArrayBuffer
toHex(isUtf8opt) → {string}
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
isUtf8 |
boolean |
<optional> |
true
|
Returns:
- Type
- string
toHtml() → {string}
- Source:
encode in HTML
Returns:
- Type
- string
toHtmlSimple() → {string}
- Source:
encode in HTML minimal
Returns:
- Type
- string
toRegexp() → {RegExp}
- Source:
Returns:
- Type
- RegExp
ucfirst(lengthopt) → {string}
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
length |
number |
<optional> |
1
|
how many first chars to be transformed to uppercase |
Returns:
- Type
- string
unescape() → {string}
- Source:
Returns:
- Type
- string
unicode() → {string}
- Source:
- See:
Returns:
- Type
- string
utf8() → {string}
- Source:
- See:
Returns:
- Type
- string
utf8decode() → {string}
- Source:
Returns:
- Type
- string
utf8encode() → {string}
- Source:
Returns:
- Type
- string
utf8need() → {string}
- Source:
Detects if a string is unicode, and if it is, then it is transformed to UTF8
Returns:
- Type
- string