转换& amp; amp; amp;到&在Objective-C中 [英] Converting & to & in Objective-C
问题描述
http://myserver.com/_layouts /feed.aspx?xsl=4&web=%2F&page=dda3fd10-c776-4d69-8c55-2f1c74b343e2&wp=476f174a-82df-4611-a3df-e13255d97533
我想替换 & amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; >
&
。我的结果应该是:
http://myserver.com/_layouts/feed.aspx?xsl=4& ; web =%2F& page = dda3fd10-c776-4d69-8c55-2f1c74b343e2& amp; amp; wp = 476f174a-82df-4611-a3df-e13255d97533
有人可以向我发送代码以完成此操作吗?
谢谢
[urlString stringByReplacingOccurrencesOfString:@& amp; amp; withString:@ &安培;];
I have a URL string in the following format.
http://myserver.com/_layouts/feed.aspx?xsl=4&web=%2F&page=dda3fd10-c776-4d69-8c55-2f1c74b343e2&wp=476f174a-82df-4611-a3df-e13255d97533
I want to replace &
with &
in the above URL. My result should be:
http://myserver.com/_layouts/feed.aspx?xsl=4&web=%2F&page=dda3fd10-c776-4d69-8c55-2f1c74b343e2&wp=476f174a-82df-4611-a3df-e13255d97533
Can someone post me the code to get this done?
Thanks
[urlString stringByReplacingOccurrencesOfString:@"&" withString:@"&"];
这篇关于转换& amp; amp; amp;到&在Objective-C中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!