Iphone 在objective-c中从包含html标记的字符串中提取内容

Iphone 在objective-c中从包含html标记的字符串中提取内容,iphone,html,objective-c,Iphone,Html,Objective C,我是iphone开发新手。我有一个字符串,它的内容中有HTML标记。我想过滤标记并将内容保存在另一个字符串中 例: 请帮帮我。谢谢。更好的解决方案: 为我工作 NSString *HTMLData = @"<h1>Hello this is a test</h1>"; NSString *actualData=@"hello this is a test" or any string which contain the actual data without HTML

我是iphone开发新手。我有一个字符串,它的内容中有HTML标记。我想过滤标记并将内容保存在另一个字符串中

例:

请帮帮我。谢谢。

更好的解决方案:

为我工作

NSString *HTMLData = @"<h1>Hello this is a test</h1>";
NSString *actualData=@"hello this is a test" or any string which contain the actual data without HTML tags.