Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我从服务器获取 json 字符串。然后我使用 SBJSON 库对其进行解析。但是当我在标签中显示解析结果时,我有这样的符号
!
(通常是!)。
那么如何将我的 json 字符串转换为普通字符串呢?
使用这个:https ://github.com/mwaterfall/MWFeedParser/blob/master/Classes/NSString+HTML.m (特别是stringByDecodingHTMLEntities方法)。
stringByDecodingHTMLEntities