OCGumboHTML5解析引擎
OCGumbo是一个Objective-C写的HTML5解析引擎,基于Google gumbo开源项目。
OCGumbo除了基础的解析功能外,最大的特色是对增加了类似JQuery的查询功能。
示例代码:
OCGumboDocument *document = [[OCGumboDocument alloc] initWithHTMLString:htmlString]; OCGumboElement *root = document.rootElement; //document: do something with the document. //rootElement: do something with the html tree. NSLog(@"options: %@", document.Query(@"body").find(@"#select").find(@"option")); NSLog(@"title: %@", document.Query(@"title").text()); NSLog(@"attribute: %@", document.Query(@"select").first().attr(@"id")); NSLog(@"class: %@", document.Query(@"#select").parents(@".main")); NSLog(@"tag.class: %@", document.Query(@"div.theCls")); NSLog(@"tag#id : %@", document.Query(@"div#theId"));
评论
SimpleEL表达式解析引擎
SimpleEL是一个表达式解析引擎。它将表达式解析分成四个部分:预处理、编译、缓存和执行。这四个步骤任意一部分都可以替换,类似设计模式中的TemplateMethod。缺省的实现是:将表达式处理成J
SimpleEL表达式解析引擎
0
xhtml-enginexhtml 字符串解析引擎
基于node.js开发的xhtml字符串解析引擎。本项目是一个处理HTML模板的引擎,你可以用类似jQuery的方式去操作一段字符串模板,比如Vue-loader根据template生成render函
xhtml-enginexhtml 字符串解析引擎
0
Simple ECMAScript EngineJavaScript 解析引擎
SEE(SimpleECMAScriptEngine)是一个用C语言开发的轻量级的ECMAScript(JavaScript)解析器和实时运行环境。支持ECMAScriptEdition3,JavaS
Simple ECMAScript EngineJavaScript 解析引擎
0