mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Port RSHTMLTag and RSOMLFeedSpecifier to Swift.
This commit is contained in:
24
Modules/Parser/Sources/Parser/HTML/HTMLTag.swift
Normal file
24
Modules/Parser/Sources/Parser/HTML/HTMLTag.swift
Normal 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user