Entitize Method (String, Boolean, 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,
	bool entitizeQuotAmpAndLtGt
)
Visual Basic
Public Shared Function Entitize ( _
	text As String, _
	useNames As Boolean, _
	entitizeQuotAmpAndLtGt As Boolean _
) As String
Visual C++
public:
static String^ Entitize(
	String^ text, 
	bool useNames, 
	bool entitizeQuotAmpAndLtGt
)

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.
entitizeQuotAmpAndLtGt
Type: System..::..Boolean
If set to true, the [quote], [ampersand], [lower than] and [greather than] characters will be entitized.

Return Value

The result text

See Also