HtmlHelper.Raw Method

Definition

Overloads

Raw(Object)

Wraps HTML markup in an HtmlString instance so that it is interpreted as HTML markup.

Raw(String)

Wraps HTML markup in an HtmlString instance so that it is interpreted as HTML markup.

Raw(Object)

Wraps HTML markup in an HtmlString instance so that it is interpreted as HTML markup.

public System.Web.IHtmlString Raw (object value);
member this.Raw : obj -> System.Web.IHtmlString
Public Function Raw (value As Object) As IHtmlString

Parameters

value
Object

The object to render HTML for.

Returns

The unencoded HTML.

Applies to

Raw(String)

Wraps HTML markup in an HtmlString instance so that it is interpreted as HTML markup.

public System.Web.IHtmlString Raw (string value);
member this.Raw : string -> System.Web.IHtmlString
Public Function Raw (value As String) As IHtmlString

Parameters

value
String

The string to interpret as HTML markup instead of being HTML-encoded.

Returns

The unencoded HTML.

Applies to