util.htmlEncode()

Convert special chars in a string to HTML entities.

Syntax

util.htmlEncode(str string) string

Examples

Basic example.