HtmlHelper.Encode Method (String)
Returns an HTML-encoded string that represents the specified string by using a full encoding that is suitable for arbitrary HTML.
Namespace: System.Web.WebPages.Html
Assembly: System.Web.WebPages (in System.Web.WebPages.dll)
Syntax
'Declaration
Public Function Encode ( _
value As String _
) As String
'Usage
Dim instance As HtmlHelper
Dim value As String
Dim returnValue As String
returnValue = instance.Encode(value)
public string Encode(
string value
)
public:
String^ Encode(
String^ value
)
member Encode :
value:string -> string
public function Encode(
value : String
) : String
Parameters
- value
Type: System.String
The string to encode.
Return Value
Type: System.String
An HTML-encoded string that represents the original string.