tinymce.html.Writer
This class is used to write HTML tags out it can be used with the Serializer.
Examples
const writer = tinymce.html.Writer({ indent: true });
writer.start('node', { attr: 'value });
writer.end('node');
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. |