【问题标题】:Extracting content from the string which has html tag in it in objective-c从objective-c中包含html标签的字符串中提取内容
【发布时间】:2010-01-25 11:39:46
【问题描述】:

我是 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.

请帮帮我。谢谢。

【问题讨论】:

    标签: iphone html objective-c


    【解决方案1】:
    【解决方案2】:
    猜你喜欢
    • 1970-01-01
    • 2012-06-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多