HtmlHelper.Raw Method
Returns markup that is not HTML encoded.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Public Function Raw ( _
value As String _
) As IHtmlString
'Usage
Dim instance As HtmlHelper
Dim value As String
Dim returnValue As IHtmlString
returnValue = instance.Raw(value)
public IHtmlString Raw(
string value
)
public:
IHtmlString^ Raw(
String^ value
)
public function Raw(
value : String
) : IHtmlString
Parameters
- value
Type: System.String
The HTML markup.
Return Value
Type: IHtmlString
The HTML markup without encoding.
Remarks
This method wraps HTML markup using the IHtmlString class, which renders unencoded HTML.