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

ConvertTextToHtml

Replaces non standard characters to their HTML equivalent such as smart quotes.

public System.String ConvertTextToHtml(String)


Returns

String in HTML form.

Parameters

NameDescriptionType
text The converted text System.String

Code Example

C#

Sample:

            
            Util.ConvertTextToHtml(""I do not like green eggs and ham I do not like them sam I am."");
            
            

Connect with Crownpeak