encodes any < > & characters in the string as proper HTML entities.
Example:
#VAR tag %htmlencode("This is a <tag>")
#VAR Shows that @tag has the < and > converted to HTML entities. Note that if you use #SHOW @tag, these entities will be displayed as < and > characters again because the CMUD window recognizes many HTML tags.