【问题标题】:Parse standardised HTML in iOS application在 iOS 应用程序中解析标准化 HTML
【发布时间】:2011-12-29 22:41:54
【问题描述】:

我正在开发一个将内容作为 html 提取的 iOS 应用程序。这并不理想,但这是我目前必须使用的全部内容。无论如何,html是以下标准格式:

....Any old html up to this point...
<div class="content odd"> Lorem ipsum... </div>
<div class="content even"> Lorem ipsum... </div>
<div class="content odd"> Lorem ipsum... </div>
<div class="content even"> Lorem ipsum... </div>
....Any old html after this point...

什么是我解析这个的最佳方法?

【问题讨论】:

    标签: iphone ios html-parsing


    【解决方案1】:

    试试https://github.com/topfunky/hpple。它似乎很好地处理了html的混乱。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-10-12
      • 2023-04-06
      • 2014-04-06
      • 1970-01-01
      • 2012-01-18
      • 1970-01-01
      • 2011-11-16
      相关资源
      最近更新 更多