public final class HtmlImporter
- Object
- HtmlImporter
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 types
class HtmlImporter.Result | The imported content. |
Methods
public static HtmlImporter.Result parse(String html) | Parses HTML into an editor model result. |
Inherited methods
Method details
parse
public static HtmlImporter.Result parse(String html)Parses HTML into an editor model result.