如何将NSAttributedString(带图像)转换为HTML?

时间:2016-03-17 14:17:36

标签: html ios uitextview nsattributedstring

我知道如何将公共button->setStyleSheet("border: 1px solid black; background: white"); (没有图像)转换为HTML。我将图片设置为NSAttributedStringNSTextAttachment(这些属性字符串设置为NSAttributedString的{​​{1}}。如何将整个属性字符串转换为HTML?

我找到了答案related solution,其中提及:

  

图像的简单构思:使用base64对其进行编码,并将其直接放在< img>用正确的框架标记。

但我怎么能实现呢?

0 个答案:

没有答案