UtilHtmlIsLink(String, LinkifyLinkType) Method

Determine whether the source value is a link of linkType type.

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

Note that linkify is not 100% spec compliant, so this function may return some false positives or false negatives.

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 bool IsLink(
	string str,
	LinkifyLinkType linkType
)

Parameters

str  String
The source value.
linkType  LinkifyLinkType
The type of link to test.

Return Value

Boolean
Returns True if the source value is a link of linkType type; otherwise, False.

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