UtilHtmlAgilityPackStripHtml Method

Removes HTML tags from an html string and returns the content in plain text format.

Definition

Namespace: DevCase.ThirdParty.HtmlAgilityPack
Assembly: DevCase.net48.ThirdParty.HtmlAgilityPack (in DevCase.net48.ThirdParty.HtmlAgilityPack.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static string StripHtml(
	string html,
	params string[] allowedTags
)

Parameters

html  String
The string that contains HTML tags.
allowedTags  String
An optional list of allowed HTML tags that will not be removed from the string.

Return Value

String
The resulting plain text content without HTML tags.

Remarks

Note: Some functionalities of this assembly may require to install one or all of the listed NuGet packages:

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

See Also