Loading string in UIWebview

后端 未结 4 2158
清歌不尽
清歌不尽 2021-02-07 04:04

How to load a string like below in UIWebview

\"\\n
\\nEgestas rhoncus auctor ac. Risus parturient, mid ultrices nisi.\\U00a0
\\nAugue ac elementum duis aliquet d         


        
4条回答
  •  北荒
    北荒 (楼主)
    2021-02-07 04:09

    Here is the Code

     NSString* htmlString= @"hereyourSTring";
     [webView loadHTMLString:htmlString baseURL:nil];
    

    this would load the String in WEBview.

提交回复
热议问题