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

War*_*ior 2 html iphone objective-c

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

例如:

NSString *HTMLData = @"<h1>Hello this is a test</h1>";
Run Code Online (Sandbox Code Playgroud)

我想过滤标题标记并将内容设置为另一个字符串

NSString *actualData=@"hello this is a test" or any string which contain the actual data without HTML tags.
Run Code Online (Sandbox Code Playgroud)

请帮帮我.谢谢.