forked from nolanw/HTMLReader
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHTMLSerialization.h
More file actions
31 lines (21 loc) · 933 Bytes
/
HTMLSerialization.h
File metadata and controls
31 lines (21 loc) · 933 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
28
29
30
31
// HTMLSerialization.h
//
// Public domain. https://github.com/nolanw/HTMLReader
#import <HTMLReader/HTMLNode.h>
NS_ASSUME_NONNULL_BEGIN
/// Turns an HTMLNode (back) into a string.
@interface HTMLNode (Serialization)
/// Describes the entire subtree rooted at the node.
@property (readonly, copy, nonatomic) NSString *recursiveDescription;
/**
Returns the serialized HTML fragment of this node's children.
For more information, see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-end.html#serializing-html-fragments
*/
@property (readonly, copy, nonatomic) NSString *innerHTML;
/**
Returns the serialized HTML fragment of this node.
This is effectively outerHTML. (See http://www.w3.org/TR/DOM-Parsing/#widl-Element-outerHTML, though no exception will be thrown by -serializedFragment.)
*/
@property (readonly, copy, nonatomic) NSString *serializedFragment;
@end
NS_ASSUME_NONNULL_END