Objective C HTML escape/unescape

前端 未结 14 2084
生来不讨喜
生来不讨喜 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:58

    The MREntitiesConverter above is an HTML stripper, not encoder.

    If you need an encoder, go here: Encode NSString for XML/HTML

提交回复
热议问题