WARNING: The [sjs-3] engine was deprecated, use [sjs-4] instead. See sjs-4: htmlEncode.

util.htmlEncode()

Convert special chars in a string to HTML entities.

Syntax

util.htmlEncode(str string) string

Examples

Basic example.

Subscribe to our newsletter!