Documentation > CMS Template API Library > Util > HtmlEncode(String)

HtmlEncode

HTML Encodes the text.

public System.String HtmlEncode(String)


Returns

a string with encoded html

Parameters

NameDescriptionType
text The text. System.String

Code Example

C#

Sample:

            
            Util.HtmlEncode("<tr><td>This is a row in the table</td></tr>")
            
            

Connect with Crownpeak