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
精彩评论