tinymce.html.Serializer
This class is used to serialize down the DOM tree into a string using a Writer instance.
Examples
new tinymce.html.Serializer().serialize(new tinymce.html.DomParser().parse('<p>text</p>'));
Methods
serialize()
serialize(node: tinymce.html.Node): String
Serializes the specified node into a string.
Examples
new tinymce.html.Serializer().serialize(new tinymce.html.DomParser().parse('<p>text</p>'));
Parameters
-
node (Node)
- Node instance to serialize.