Create HTMLParserTests.

This commit is contained in:
Brent Simmons
2024-09-21 22:10:47 -07:00
parent 20b222f455
commit a7c4669bd6
9 changed files with 149 additions and 61 deletions

View File

@@ -9,7 +9,14 @@ import Foundation
public final class HTMLLink {
let urlString: String? // Absolute URL string
let text: String?
let title: String? // Title attribute inside anchor tag
public var urlString: String? // Absolute URL string
public var text: String?
public var title: String? // Title attribute inside anchor tag
init(urlString: String? = nil, text: String? = nil, title: String? = nil) {
self.urlString = urlString
self.text = text
self.title = title
}
}