tinymce.html.Writer

This class is used to write HTML tags out it can be used with the Serializer or the SaxParser.

Examples

var writer = new tinymce.html.Writer({indent : true});
var parser = new tinymce.html.SaxParser(writer).parse('<p><br></p>');
console.log(writer.getContent());

Methods

Method Defined By
Constructs a new Writer instance.
tinymce.html.Writer
Writes the a start element such as .
tinymce.html.Writer
Writes the a end element such as .
tinymce.html.Writer
Writes a text node.
tinymce.html.Writer
Writes a cdata node such as .
tinymce.html.Writer
Writes a comment node such as .
tinymce.html.Writer
Writes a PI node such as .
tinymce.html.Writer
Writes a doctype node such as .
tinymce.html.Writer
Resets the internal buffer if one wants to reuse the writer.
tinymce.html.Writer
Returns the contents that got serialized.
tinymce.html.Writer