mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Create HTMLParser module.
This commit is contained in:
15
Modules/Parser/Sources/HTMLParser/HTMLLink.swift
Normal file
15
Modules/Parser/Sources/HTMLParser/HTMLLink.swift
Normal file
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// HTMLLink.swift
|
||||
//
|
||||
//
|
||||
// Created by Brent Simmons on 9/21/24.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
public final class HTMLLink {
|
||||
|
||||
let urlString: String? // Absolute URL string
|
||||
let text: String?
|
||||
let title: String? // Title attribute inside anchor tag
|
||||
}
|
||||
16
Modules/Parser/Sources/HTMLParser/HTMLLinkParser.swift
Normal file
16
Modules/Parser/Sources/HTMLParser/HTMLLinkParser.swift
Normal file
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// File.swift
|
||||
//
|
||||
//
|
||||
// Created by Brent Simmons on 9/21/24.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import SAX
|
||||
|
||||
public final class HTMLLinkParser {
|
||||
|
||||
public static func htmlLinks(parserData: ParserData) -> [HTMLLink] {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user