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
28 lines (22 loc) · 835 Bytes
/
HTMLSerialization.h
File metadata and controls
28 lines (22 loc) · 835 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
// HTMLSerialization.h
//
// Public domain. https://github.com/nolanw/HTMLReader
#import "HTMLNode.h"
@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