Create HTMLParser module.

This commit is contained in:
Brent Simmons
2024-09-21 12:16:09 -07:00
parent 6959e1f891
commit 3c4a278b42
4 changed files with 57 additions and 0 deletions

View 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
}

View 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] {
}
}