Port RSHTMLTag and RSOMLFeedSpecifier to Swift.

This commit is contained in:
Brent Simmons
2024-08-18 18:58:53 -07:00
parent d13f0f48ed
commit 5ec0964594
7 changed files with 70 additions and 151 deletions

View File

@@ -0,0 +1,24 @@
//
// HTMLTag.swift
//
//
// Created by Brent Simmons on 8/18/24.
//
import Foundation
public struct HTMLTag: Sendable {
public enum HTMLTagType {
case link
case meta
}
public let tagType: HTMLTagType
public let attributes: [String: String]?
public init(tagType: TagType, attributes: [String : String]?) {
self.tagType = tagType
self.attributes = attributes
}
}