Skip to content

OfTheWolf/NativeHtmlEditor

Repository files navigation

NativeHtmlEditor

An HTML editor that converts NSAttributedString into HTML.

Editor View Html Output

Editing Features:

  • Bold
  • Italic
  • Underlined
  • Strikethrough
  • Text color
  • Text background color
  • Text alignment

Html Converter Features:

  • Bold
  • Italic
  • Underlined
  • Strikethrough
  • Link
  • Text color
  • Text background color
  • Text alignment
  • List Items

Usage

  let paragraphs = [Paragraph](self.textView.attributedText!)
  let htmlTreeBuilder = HTMLTreeBuilder()
  for item in paragraphs {
      item.accept(visitor: htmlTreeBuilder)
  }
  let html = htmlTreeBuilder.toHtml()

Releases

No releases published

Packages

No packages published

Languages