iphone - 从 objective-c 中包含 html 标签的字符串中提取内容

标签 iphone html objective-c

我是 iPhone 开发的新手。我有一个字符串,其内容中包含 HTML 标签。我想过滤标签并将内容保存在另一个字符串中。

例如:

NSString *HTMLData = @"<h1>Hello this is a test</h1>";

我想过滤header标签,把内容设置成另外一个字符串之类的

NSString *actualData=@"hello this is a test" or any string which contain the actual data without HTML tags.

请帮助我。谢谢。

最佳答案

关于iphone - 从 objective-c 中包含 html 标签的字符串中提取内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2131942/

相关文章:

jquery - Div默认继承parents属性吗

iphone - img_data_lock iPhone - imageNamed 与 imageWithContentsofFile

iphone - v4.0 的 Base-SDK 意味着它不会安装在 4.1 或 4.2 设备上?

javascript - 使用 Javascript 根据 ID 更改 innerHTML 无效

ios - UINavigationController 做事务时发生崩溃

objective-c - 为什么信号不会被捕获?

ios - UITableView 没有填满数据

iphone分辨率问题

ios - 在 iOS 中为 UINavigationBar 着色

javascript - $(this).parent().remove() 导致页面刷新