public final class HtmlSerializer
- Object
- 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
docEditorDocument- the text document
inlineInlineStyles- the inline style model
blocksRichBlocks- the block attribute model
linksList<String>- Not documented.
imageSourcesList<String>- Not documented.