tinymce.html.Serializer

This class is used to serialize down the DOM tree into a string using a Writer instance.

Examples

tinymce.html.Serializer().serialize(tinymce.html.DomParser().parse('<p>text</p>'));

Summary

Methods

Name Summary Defined by

serialize()

Serializes the specified node into a string.

Serializer

Methods

serialize()

serialize(node: tinymce.html.Node): String

Serializes the specified node into a string.

Examples

tinymce.html.Serializer().serialize(tinymce.html.DomParser().parse('<p>text</p>'));

Parameters

  • node (Node) - Node instance to serialize.

Return value

  • String - String with HTML based on DOM tree.