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

util.htmlEncode()

Convert special chars in a string to HTML entities.

Syntax

util.htmlEncode(str string) string

Examples

Basic example.