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());
Summary
Methods
Name | Summary | Defined by |
---|---|---|
Writes a comment node such as <!-- Comment -->. |
||
Writes a doctype node such as <!DOCTYPE data>. |
||
Writes the a end element such as </p>. |
||
Returns the contents that got serialized. |
||
Writes a PI node such as <?xml attr="value" ?>. |
||
Resets the internal buffer if one wants to reuse the writer. |
||
Writes the a start element such as <p id="a">. |
||
Writes a text node. |