mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-30 01:10:38 +00:00
22 lines
569 B
Swift
22 lines
569 B
Swift
//
|
|
// HTMLLink.swift
|
|
// RSParser
|
|
//
|
|
// Created by Brent Simmons on 4/20/26.
|
|
//
|
|
|
|
// A single `<a>` element harvested from an HTML document.
|
|
// Any field may be nil because HTML can be malformed.
|
|
|
|
public struct HTMLLink: Sendable {
|
|
public let urlString: String? // absolute, resolved against the document's base URL
|
|
public let text: String? // inner text, trimmed
|
|
public let title: String? // title attribute
|
|
|
|
public init(urlString: String?, text: String?, title: String?) {
|
|
self.urlString = urlString
|
|
self.text = text
|
|
self.title = title
|
|
}
|
|
}
|