HtmlEncode Method

Html Agility Pack

Collapse imageExpand ImageCopy imageCopyHover image
Applies HTML encoding to a specified string.

Namespace: HtmlAgilityPack
Assembly: HtmlAgilityPack (in HtmlAgilityPack.dll) Version: 1.4.0.0 (1.4.0.0)

Syntax

C#
public static string HtmlEncode(
	string html
)
Visual Basic
Public Shared Function HtmlEncode ( _
	html As String _
) As String
Visual C++
public:
static String^ HtmlEncode(
	String^ html
)

Parameters

html
Type: System..::..String
The input string to encode. May not be null.

Return Value

The encoded string.

See Also