Loading
Extend Salesforce with Clicks, Not Code
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          HTMLENCODE

          HTMLENCODE

          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
          Example If the merge field foo__c contains <B>Enter the user's name<b>, {!HTMLENCODE(foo__c)} results in: &lt;B&gt;Enter the user&#39;s name&lt;/b&gt;
           
          Loading
          Salesforce Help | Article