An HTML editor that converts NSAttributedString
into HTML.
Editor View | Html Output |
---|---|
- Bold
- Italic
- Underlined
- Strikethrough
- Text color
- Text background color
- Text alignment
- Bold
- Italic
- Underlined
- Strikethrough
- Link
- Text color
- Text background color
- Text alignment
- List Items
let paragraphs = [Paragraph](self.textView.attributedText!)
let htmlTreeBuilder = HTMLTreeBuilder()
for item in paragraphs {
item.accept(visitor: htmlTreeBuilder)
}
let html = htmlTreeBuilder.toHtml()