Table plus | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
Description
Excerpt | ||
---|---|---|
| ||
Escapes the given html removing traces of offending characters that could be wrongfully interpreted as markup. |
Escapes the given html removing traces of offending characters that could be wrongfully interpreted as markup The following characters are reserved in HTML and must be replaced with their corresponding HTML entities:
"
...
is replaced
...
with "
&
...
is replaced
...
with &
<
...
is replaced
...
with <
>
...
is replaced
...
with >
Parameters
Table plus | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
|
...
|
Return
...
Type
String
Returns the html input escaped.
Example
Code Block |
---|
return escapeHtml("<html><script><img src=1 onerror=alert(1)></script></html>"); |
Returns :Returns "<html><script><img src=1 onerror=alert(1)></script></html>"
See also
...
Filter by label (Content by label) | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|