ZhgChgLi / ZMarkupParser

ZMarkupParser is a pure-Swift library that helps you convert HTML strings into NSAttributedString with customized styles and tags.
https://link.zhgchg.li/
MIT License
311 stars 24 forks source link

图片不能显示 #43

Closed wudb closed 10 months ago

wudb commented 11 months ago

如下代码 let parser = ZHTMLParserBuilder.initWithDefault().set(rootStyle: MarkupStyle(font: MarkupStyleFont(size: 14))).build() let html = "<img src=\"https://cdn.sspai.com/editor/u_/clp6gmdb34tb3fodr3a0?imageView2/2/w/1120/q/90/interlace/1/ignore-error/1\"/>" self.textView.setHtmlString(html, with: parser)

这个链接的图片不能显示

zhgchgli0718 commented 10 months ago

v1.7.0 fixed and release