HttpServerUtilityBase.HtmlEncode Method (String)

 

When overridden in a derived class, HTML-encodes a string and returns the encoded string.

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

abstract HtmlEncode : 
        s:string -> string
override HtmlEncode : 
        s:string -> string

Parameters

s
Type: System.String

The string to encode.

Return Value

Type: System.String

The HTML-encoded text.

Exception Condition
NotImplementedException

Always.

.NET Framework
Available since 3.5
Return to top
Show: