Add HTML parser supports #36

Merged
merged 1 commit into from Jan 15, 2014

Conversation

Projects
None yet
3 participants
Contributor

siuying commented Mar 22, 2013

Allow RXMLElement parse HTML. Depends on libxml2/libxml/HTMLparser.h

Add following constructors:

- (id)initFromHTMLString:(NSString *)xmlString encoding:(NSStringEncoding)encoding;
- (id)initFromHTMLFile:(NSString *)filename;
- (id)initFromHTMLFile:(NSString *)filename fileExtension:(NSString*)extension;
- (id)initFromHTMLFilePath:(NSString *)fullPath;
- (id)initFromHTMLData:(NSData *)data;
+ (id)elementFromHTMLString:(NSString *)xmlString encoding:(NSStringEncoding)encoding;
+ (id)elementFromHTMLFile:(NSString *)filename;
+ (id)elementFromHTMLFile:(NSString *)filename fileExtension:(NSString*)extension;
+ (id)elementFromHTMLFilePath:(NSString *)fullPath;
+ (id)elementFromHTMLData:(NSData *)data;
Add HTML parser supports
Allow RXMLElement parse HTML. Depends on <libxml2/libxml/HTMLparser.h>.

Add following constructors:

    - (id)initFromHTMLString:(NSString *)xmlString encoding:(NSStringEncoding)encoding;
    - (id)initFromHTMLFile:(NSString *)filename;
    - (id)initFromHTMLFile:(NSString *)filename fileExtension:(NSString*)extension;
    - (id)initFromHTMLFilePath:(NSString *)fullPath;
    - (id)initFromHTMLData:(NSData *)data;
    + (id)elementFromHTMLString:(NSString *)xmlString encoding:(NSStringEncoding)encoding;
    + (id)elementFromHTMLFile:(NSString *)filename;
    + (id)elementFromHTMLFile:(NSString *)filename fileExtension:(NSString*)extension;
    + (id)elementFromHTMLFilePath:(NSString *)fullPath;
    + (id)elementFromHTMLData:(NSData *)data;

Derkin commented on a2aaad7 Apr 24, 2013

that's so cool to make this

Contributor

siuying commented Apr 25, 2013

@ZaBlanc would you please consider merge this?

ZaBlanc added a commit that referenced this pull request Jan 15, 2014

Merge pull request #36 from siuying/HTML
Add HTML parser supports

@ZaBlanc ZaBlanc merged commit 76b59ec into ZaBlanc:master Jan 15, 2014

Owner

ZaBlanc commented Jan 15, 2014

Thank you! However, could you also please add some documentation to the README for it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment