Skip to content

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()

About

Native Html Editor (Not So Rich Text Editor)

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages