Capy-Bearer Documentation

html_escape

lib call

Capy

function html_escape(value : string) string

Description

html_escape() escapes text for an HTML text position. It escapes ampersands, angle brackets, and double quotes.

Parameters

value : text to use in HTML

Return Values

Text with HTML-sensitive characters replaced by entities.

Example

Capy

print(html_escape("<b>Tom & Jerry</b>"), "\n")