# 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 Summary

  Modifier and Type
  Method
  Description
  `static String`
  `toHtml(String content, RichTextFormat format)`
  Converts content to an HTML fragment.

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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.