mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-25 00:15:28 +01:00
Create HTMLParser module.
This commit is contained in:
parent
6959e1f891
commit
3c4a278b42
@ -63,6 +63,20 @@
|
||||
ReferencedContainer = "container:">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "HTMLParser"
|
||||
BuildableName = "HTMLParser"
|
||||
BlueprintName = "HTMLParser"
|
||||
ReferencedContainer = "container:">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
|
@ -20,6 +20,10 @@ let package = Package(
|
||||
name: "OPMLParser",
|
||||
type: .dynamic,
|
||||
targets: ["OPMLParser"]),
|
||||
.library(
|
||||
name: "HTMLParser",
|
||||
type: .dynamic,
|
||||
targets: ["HTMLParser"]),
|
||||
.library(
|
||||
name: "DateParser",
|
||||
type: .dynamic,
|
||||
@ -39,6 +43,14 @@ let package = Package(
|
||||
swiftSettings: [
|
||||
.enableExperimentalFeature("StrictConcurrency")
|
||||
]),
|
||||
.target(
|
||||
name: "HTMLParser",
|
||||
dependencies: [
|
||||
"SAX"
|
||||
],
|
||||
swiftSettings: [
|
||||
.enableExperimentalFeature("StrictConcurrency")
|
||||
]),
|
||||
.target(
|
||||
name: "FeedParser",
|
||||
dependencies: [
|
||||
|
15
Modules/Parser/Sources/HTMLParser/HTMLLink.swift
Normal file
15
Modules/Parser/Sources/HTMLParser/HTMLLink.swift
Normal 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
|
||||
}
|
16
Modules/Parser/Sources/HTMLParser/HTMLLinkParser.swift
Normal file
16
Modules/Parser/Sources/HTMLParser/HTMLLinkParser.swift
Normal 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] {
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user