title: How to format HTML string with font for ZSSRichTextEditor?
body: <p>I'm using following 3rd party library <a href="https://github.com/nnhubbard/ZSSRichTextEditor" rel="nofollow noreferrer"><strong>ZSSRichTextEditor</strong></a> in my app. To have <strong>Bold</strong> <em>italic</em> and underlined text. This is working that's this library is promising. After formatting my text, I'll ask for HTML string by calling following method, <code>getHTML</code> it'll simply return me HTML form of my string.</p>
  
  <p>After that, I'll need to show it into <code>UILabel</code> and <code>UITextView</code> – when I try to show those text, it's showing me the text but not with the font which I want. How do I get this done?</p>
  
  <p>I'm attaching some screenshots to make things easy.</p>
  
  <p><a href="https://i.stack.imgur.com/DEhhK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DEhhK.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/7T4uS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7T4uS.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/06wUf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/06wUf.png" alt="enter image description here"></a></p>
  
  <p>See fonts difference in screenshots 2-3.</p>
  
  <p>I'm converting HTML string to attributed string and then setting it for <code>UITextView</code> or <code>UILabel</code>.</p>
  
  <pre><code>NSString *htmlString = [self getHTML];
  NSAttributedString *attributedString = [[NSAttributedString alloc] initWithData:[htmlString dataUsingEncoding:NSUnicodeStringEncoding] options:@{NSDocumentTypeDocumentAttribute:NSHTMLTextDocumentType} documentAttributes:nil error:nil];
  descriptionTextView.attributedText = attributedString;
  </code></pre>