2010-01-25 75 views
2

我是iphone开发新手。我有一个字符串,其内容中有HTML标签。我想过滤标签并将内容保存在另一个串。从目标中提取html标签的字符串中提取内容

例:

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

我要过滤的标题标签和内容设置为另一个字符串像

NSString *[email protected]"hello this is a test" or any string which contain the actual data without HTML tags. 

请帮我out.Thanks。

回答