Extends
Methods
-
<static> encodeHtmlEntities(string) → {string}
-
Encode HTML entities Escapes HTML entities that can cause Cross Site Scripting (XSS). This function follows the OWASP guideline and replaces the following characters: & --> & < --> < > --> > " --> " ' --> ' / --> /
Parameters:
Name Type Description string
string The string that will be encoded. Returns:
string Encoded string.- Type
- string