mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-03 20:37:34 +01:00
Create HTMLParser module.
This commit is contained in:
parent
6959e1f891
commit
3c4a278b42
@ -63,6 +63,20 @@
|
|||||||
ReferencedContainer = "container:">
|
ReferencedContainer = "container:">
|
||||||
</BuildableReference>
|
</BuildableReference>
|
||||||
</BuildActionEntry>
|
</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>
|
</BuildActionEntries>
|
||||||
</BuildAction>
|
</BuildAction>
|
||||||
<TestAction
|
<TestAction
|
||||||
|
@ -20,6 +20,10 @@ let package = Package(
|
|||||||
name: "OPMLParser",
|
name: "OPMLParser",
|
||||||
type: .dynamic,
|
type: .dynamic,
|
||||||
targets: ["OPMLParser"]),
|
targets: ["OPMLParser"]),
|
||||||
|
.library(
|
||||||
|
name: "HTMLParser",
|
||||||
|
type: .dynamic,
|
||||||
|
targets: ["HTMLParser"]),
|
||||||
.library(
|
.library(
|
||||||
name: "DateParser",
|
name: "DateParser",
|
||||||
type: .dynamic,
|
type: .dynamic,
|
||||||
@ -39,6 +43,14 @@ let package = Package(
|
|||||||
swiftSettings: [
|
swiftSettings: [
|
||||||
.enableExperimentalFeature("StrictConcurrency")
|
.enableExperimentalFeature("StrictConcurrency")
|
||||||
]),
|
]),
|
||||||
|
.target(
|
||||||
|
name: "HTMLParser",
|
||||||
|
dependencies: [
|
||||||
|
"SAX"
|
||||||
|
],
|
||||||
|
swiftSettings: [
|
||||||
|
.enableExperimentalFeature("StrictConcurrency")
|
||||||
|
]),
|
||||||
.target(
|
.target(
|
||||||
name: "FeedParser",
|
name: "FeedParser",
|
||||||
dependencies: [
|
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…
x
Reference in New Issue
Block a user