UtilHtmlFindLinks Method

Finds all links in the source html string.

This function internally uses linkify JavaScript library (https://linkify.js.org/).

Definition

Namespace: DevCase.Core.DataProcessing.Html
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static ReadOnlyCollection<LinkifyFindObject> FindLinks(
	string str,
	LinkifyPlugins plugins = LinkifyPlugins.None
)

Parameters

str  String
The source html string.
plugins  LinkifyPlugins  (Optional)
Optional plugin flags that enables search of additional link types.

By default this function only searchs for domain urls and email addresses.

Default value: None

Return Value

ReadOnlyCollectionLinkifyFindObject
Returns a ReadOnlyCollectionT collection which represents the links found.

Remarks

Note: To use this functionality you need to install this nuget package:

Microsoft.ClearScript.V8

Example

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

See Also