HTML Parser for Titanium Mobile

可紊 提交于 2020-01-02 18:38:21

问题


I'm looking for easy to implement module (or a function) for Appcelerator Titanium Mobile that could parse html code (stripping unneeded tags and cleaning up the code) and spitting out just the content.

I know there's an option to use webview in mobile development, but it would add additional overhead, consuming device resources and slowing down your application. so it is not an option.

I also found this post on official appcelerator forum: http://developer.appcelerator.com/question/60731/what-is-the-best-way-to-parse-html but it is 2 years old and I never managed to get it to work.

Ideally, the solution I'm looking for would adhere to commonjs practices used in Titanium Mobile (and nodejs).

来源:https://stackoverflow.com/questions/14335431/html-parser-for-titanium-mobile

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!