Tags · Functions · Objects
Lucee Function Reference
Choose a function:

Function HTMLCODEFORMAT

Replaces special characters in a string with their HTML-escaped
equivalents and inserts
 and 
tags at the beginning
and end of the string.
[version]
HTML version to use. currently ignored.
-1: The latest implementation of HTML
2.0: HTML 2.0 (Default)
3.2: HTML 3.2

Example

htmlcodeformat(string string,[number version]):string

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
string string  Yes A string or a variable that contains one.  
version number  No HTML version to use:
  • 1: The latest implementation of HTML
    2.0: HTML 2.0 (default)
    3.2: HTML 3.2