6

I know how to convert the common NSAttributedString (which has no image) into HTML. I set the Images as NSTextAttachment to NSAttributedString (these attributed strings are set as attributeText of a UITextView). How could I convert the whole attributed string into HTML?

I‘ve found an answer related solution,which mentions:

Simple idea for image: encode it with base64 and put it directly in a < img > tag with the right frame.

But how could i implement that?

Community
  • 1
  • 1
Min Wang
  • 305
  • 4
  • 16

0 Answers0