Function: html_encode( )

Syntax

html_encode (<string>)

Type

string

Returns

A string valued converted into a form suitable for an HTML page. Some characters are not permitted in HTML pages without being escaped because they are treated as special by browsers, e.g. <, >, & etc.

Parameters

Examples

string s = '<"hello there">'
tell html_encode(s)
# yields '&lt;&quot;hello&nbsp;there&quot;&gt;'

See Also

Commands:

browser, writefile

Functions:

html_decode (string)