Swift: NSAttributeString incorrect HTML result

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


Swift: NSAttributeString incorrect HTML result



i tried to read HTML using NSAttributeString. but it gets incorrect result when i put table in li




<ol><li>first <table><tbody><tr> <td>hello</td> <td>: </td> <td>world</td> </tr></tbody></table></li><li>second</li></ol>



and it becomes like this



enter image description here



i have used the other extension but it still doesn't work.



ex: Convert HTML to NSAttributedString in iOS



is it bug from swift? and if it's a bug is there any solution?









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Makefile test if variable is not empty

Will Oldham

Visual Studio Code: How to configure includePath for better IntelliSense results