【发布时间】:2016-06-17 15:13:22
【问题描述】:
我有来自网络服务的字符串,我需要从 HTML 标记中获取值。
<b>Time:</b> Sunday, 17 July 2016 at 18:00<br /><b>Details:</b> Plug in to a regular feast of glorious gospel revelation! / Visit www.TheNewMystics.TV to become a premium member. Each month, John Crowder interacts live with viewers, answering questions, teaching and releasing the glory via live stream. / Members can send in questions live, enjoy each month's broadcast and have access to all archive teachings. / / Starts at 6 p.m. Pacific/ 9 p.m. Eastern<br /><b>Location:</b> www.thenewmystics.tv
如何从HTML 字符串中获取Time、location 和details 的值
谢谢
【问题讨论】:
-
如果您不想使用上述解决方案,也可以使用 NSString 子字符串函数轻松完成。
标签: html ios objective-c