|
@@ -61,6 +61,8 @@ class ProductDetailDescriptionTableViewCell: UITableViewCell {
|
|
|
if str == "" {
|
|
|
str = "暂无数据"
|
|
|
}
|
|
|
+ str = "<head><style>img{width:\(kScreenWidth) !important;height:auto}</style></head>\(str)"
|
|
|
+ str = str.setHTMLImgStyle()
|
|
|
let htmlData = NSString(string: str).data(using: String.Encoding.unicode.rawValue)
|
|
|
let options = [NSAttributedString.DocumentReadingOptionKey.documentType:
|
|
|
NSAttributedString.DocumentType.html]
|