SPEncodeMethod enumeration

Specifies how the composite formatted string is written in HTML.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public enum SPEncodeMethod

Member nameDescription
NoEncodeSpecifies no encoding.
HtmlEncodeSpecifies HTML encoding.
HtmlEncodeAllowSimpleTextFormattingSpecifies encoding the specified string for use as text between HTML tags, preserving spaces in the original string and allowing simple text formatting.
EcmaScriptStringLiteralEncodeSpecifies ECMAScript encoding.