开发者

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

开发者 https://www.devze.com 2023-02-16 15:32 出处:网络
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 t

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

精彩评论

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