UtilHtmlFindLinks Method
Finds all links in the source html string.
This function internally uses linkify JavaScript library (
https://linkify.js.org/).
Namespace: DevCase.Core.DataProcessing.HtmlAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
No code example is currently available or this language may not be supported.
- 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
ReadOnlyCollectionLinkifyFindObject
Returns a
ReadOnlyCollectionT collection
which represents the links found.
This is a code example.
No code example is currently available or this language may not be supported.
Dim htmlString As String = "
<!DOCTYPE html>
<html>
<body>
<p>Linkify Test.</p>
<p>Domain: example.domain.com</p>
<p>E-mail Address: For help with GitHub, please email support@github.com</p>
<p>IP Address: No place like 127.0.0.1</p>
<p>#Hashtag: Works with hashtags #PhotoOfTheDay or #일상</p>
<p>@Mention: Check out @Hypercontext and @nfrasser</p>
<p>#-Ticket: This is related to #42.</p>
</body>
</html>"
Dim plugins As LinkifyPlugins = LinkifyPlugins.All
Dim findObjects As ReadOnlyCollection(Of LinkifyFindObject) = FindLinks(htmlString, plugins)
For Each findObject As LinkifyFindObject In findObjects
Console.WriteLine(findObject.ToString())
Next
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.