Encodes text and merge field values for use in HTML by replacing characters that are
reserved in HTML, such as the greater-than sign (>), with HTML entity equivalents, such as
>.
Use
{!HTMLENCODE(text)} and replace
text with the merge field or text string that contains the reserved
characters.
Tips
This function is only available in custom buttons and links, and in Visualforce.
Example If the merge field
foo__c
contains <B>Enter the user's name<b>, {!HTMLENCODE(foo__c)} results in: <B>Enter the user's name</b>