# Class HtmlImporter

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

public final class HtmlImporter extends Object
Parses an HTML string into the pure rich text editor model (plain text plus per character `TextStyle` and per paragraph `RichBlocks.BlockAttr`). Parsing and entity decoding are delegated to the framework's tolerant `HTMLParser`/`XMLParser` implementation; this class only maps the resulting DOM onto the editor model. It handles the HTML that `HtmlSerializer` emits plus common external markup (headings, paragraphs, lists, bold / italic / underline / strike, colored spans and links).

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static final class`
  `HtmlImporter.Result`
  The imported content.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static HtmlImporter.Result`
  `parse(String html)`
  Parses HTML into an editor model result.

  ### Methods inherited from class Object

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

- ## Method Details

  - ### parse

    public static HtmlImporter.Result parse(String html)
    Parses HTML into an editor model result.