Home Contents | # cgi:tohtml | Httpd/CGI | Core4 Lua Event System

## SYNOPSIS

1. result = cgi:tohtml(text)
2. result = http.tohtml(text)

## DESCRIPTION

Converts the string text into a safe html representation. This means that the characters <, > and & are converted into their HTML representations &lt;, &gt; and &amp; respectively.

Both forms function identical. The first form looks cleaner inside a script, the second form works without needing a live request.

## SEE ALSO

cgi:write()