Objective C HTML escape/unescape

前端 未结 14 2147
生来不讨喜
生来不讨喜 2020-11-22 16:19

Wondering if there is an easy way to do a simple HTML escape/unescape in Objective C. What I want is something like this psuedo code:

NSString *string = @\"         


        
14条回答
  •  广开言路
    2020-11-22 16:45

    MREntitiesConverter doesn't work for escaping malformed xml. It will fail on a simple URL:

    http://www.google.com/search?client=safari&rls=en&q=fail&ie=UTF-8&oe=UTF-8

提交回复
热议问题