mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-23 16:20:53 +01:00
36 lines
803 B
Objective-C
Executable File
36 lines
803 B
Objective-C
Executable File
//
|
|
// RSHTMLLinkParser.h
|
|
// RSParser
|
|
//
|
|
// Created by Brent Simmons on 8/7/16.
|
|
// Copyright © 2016 Ranchero Software, LLC. All rights reserved.
|
|
//
|
|
|
|
@import Foundation;
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
/*Returns all <a href="some_url">some_text</a> as RSHTMLLink object array.*/
|
|
|
|
@class ParserData;
|
|
@class RSHTMLLink;
|
|
|
|
@interface RSHTMLLinkParser : NSObject
|
|
|
|
+ (NSArray <RSHTMLLink *> *)htmlLinksWithParserData:(ParserData *)parserData;
|
|
|
|
@end
|
|
|
|
|
|
@interface RSHTMLLink : NSObject
|
|
|
|
// Any of these, even urlString, may be nil, because HTML can be bad.
|
|
|
|
@property (nonatomic, nullable, readonly) NSString *urlString; //absolute
|
|
@property (nonatomic, nullable, readonly) NSString *text;
|
|
@property (nonatomic, nullable, readonly) NSString *title; //title attribute inside anchor tag
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|