Class: 'String'

'String'

new 'String'()

String
Source:

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.
Source:
Returns:
string Encoded string.
Type
string