Class RichTextImporter

java.lang.Object
com.codename1.ui.editor.RichTextImporter

public final class RichTextImporter extends Object
Converts supported rich-text interchange formats into the HTML fragment consumed by the shared HtmlImporter. Keeping one HTML-to-model mapping avoids separate style/block implementations for RTF, Markdown and AsciiDoc.
  • Method Details

    • toHtml

      public static String toHtml(String content, RichTextFormat format)
      Converts content to an HTML fragment. HTML input is returned unchanged and plain text is escaped.