Display HTML text in UILabel iphone

前端 未结 11 1956
借酒劲吻你
借酒劲吻你 2020-12-02 14:39

I am getting a HTML Response from a webservice Below is the HTML I am getting in response

TopicGud mrng.

\\n
11条回答
  •  眼角桃花
    2020-12-02 14:52

    From: https://stackoverflow.com/a/5581178/237838


    To convert HTML to plain text Download File

    and use

    stringByConvertingHTMLToPlainText function on your NSString


    OR

    You can use DTCoreText (previously known as NSAttributedString Additions for HTML).

提交回复
热议问题