删除NSString中的HTML编码字符

时间:2010-11-20 06:09:22

标签: objective-c nsstring html-encode

使用 Objective-C ,如何转换NSString

@"Panda's Expenses"

进入此字符串

@"Panda's Expenses"

2 个答案:

答案 0 :(得分:2)

答案 1 :(得分:0)

试试这个:

NSString *reformedPanda =
    [@"Panda's Expenses" stringByReplacingPercentEscapesUsingEncoding:NSASCIIStringEncoding];