Entitize Method (String, Boolean)

Html Agility Pack

Collapse imageExpand ImageCopy imageCopyHover image
Replace characters above 127 by entities.

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

Syntax

C#
public static string Entitize(
	string text,
	bool useNames
)
Visual Basic
Public Shared Function Entitize ( _
	text As String, _
	useNames As Boolean _
) As String
Visual C++
public:
static String^ Entitize(
	String^ text, 
	bool useNames
)

Parameters

text
Type: System..::..String
The source text.
useNames
Type: System..::..Boolean
If set to false, the function will not use known entities name. Default is true.

Return Value

The result text.

See Also