Export (0) Print
Expand All

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)

public virtual string HtmlEncode(
	string s
)

Parameters

s
Type: System.String

The string to encode.

Return Value

Type: System.String
The HTML-encoded text.

ExceptionCondition
NotImplementedException

Always.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5 SP1
Show:
© 2015 Microsoft