开发者

iOS - Is there a good way to clean up HTML code?

In my app I am pulling in some HTML content from the web. Sometimes that markup isn't the most valid looking code and I would like to clean it up (fixing markup errors, etc.), simila开发者_如何学Gor to how HTMLTidy works.

Someone mentioned libTidy, but I find nothing about how to use it, so let me ask, what is the best way to clean up HTML to be more valid in iOS?


Take a look at https://stackoverflow.com/a/24794675. It describes how to create a modulemap file so you can include libTidy.

br denis

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜