public final class HtmlSerializer

  1. Object
  2. HtmlSerializer
Serializes the pure rich text editor model (text + InlineStyles + RichBlocks) back into an HTML string for RichTextArea#getHtml. The output is model canonical rather than byte identical, which matches how a contenteditable surface normalized HTML in the previous backend.

Methods

public static String serialize(EditorDocument doc, InlineStyles inline, RichBlocks blocks, List<String> links, List<String> imageSources)Serializes the model into HTML.

Inherited methods

Method details

serialize

public static String serialize(EditorDocument doc, InlineStyles inline, RichBlocks blocks, List<String> links, List<String> imageSources)
Serializes the model into HTML.

Parameters

doc EditorDocument
the text document
inline InlineStyles
the inline style model
blocks RichBlocks
the block attribute model
links List<String>
Not documented.
imageSources List<String>
Not documented.