forked from nolanw/HTMLReader
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHTMLTextNode.h
More file actions
Latest commit
27 lines (18 loc) · 659 Bytes
/
Copy pathHTMLTextNode.h
File metadata and controls
27 lines (18 loc) · 659 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// HTMLTextNode.h
//
// Public domain. https://github.com/nolanw/HTMLReader
#import"HTMLNode.h"
NS_ASSUME_NONNULL_BEGIN
/**
An HTMLTextNode represents text.
For more information, see http://www.whatwg.org/specs/web-apps/current-work/multipage/tree-construction.html#insert-a-character
*/
@interfaceHTMLTextNode : HTMLNode
/// Initializes a text node with some initial contents.
- (instancetype)initWithData:(NSString *)data NS_DESIGNATED_INITIALIZER;
/// The text.
@property (readonly, copy, nonatomic) NSString *data;
/// Adds a string to the end of the node's text.
- (void)appendString:(NSString *)string;
@end
NS_ASSUME_NONNULL_END