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 cdata node, such as |
||
Writes a comment node, such as |
||
Writes a doctype node, such as |
||
Writes an end element, such as |
||
Returns the contents that was serialized. |
||
Writes a processing instruction (PI) node, such as |
||
Resets the internal buffer. For example, if one wants to reuse the writer. |
||
Writes a start element, such as |
||
Writes a text node. |
Methods
pi()
pi(name: String, text: String)
Writes a processing instruction (PI) node, such as <?xml attr="value" ?>
.