Important changes to Tiny Cloud pricing > Find out more

tinymce.html

APIs for working with HTML within the editor.

tinymce.html.DomParser

This class parses HTML code into a DOM like structure of nodes it will remove redundant whitespace and make sure that the node tree is valid according to the specified schema. So for example: <p>a<p>b</p>c</p> will become <p>a</p><p>b</p><p>c</p>

tinymce.html.Entities

Entity encoder class.

tinymce.html.Node

This class is a minimalistic implementation of a DOM like node used by the DomParser class.

tinymce.html.SaxParser

This class parses HTML code using pure JavaScript and executes various events for each item it finds. It will always execute the events in the right order for tag soup code like <b><p></b></p>. It will also remove elements and attributes that doesn't fit the schema if the validate setting is enabled.

tinymce.html.Schema

Schema validator class.

tinymce.html.Serializer

This class is used to serialize down the DOM tree into a string using a Writer instance.

tinymce.html.Styles

This class is used to parse CSS styles it also compresses styles to reduce the output size.

tinymce.html.Writer

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

Can't find what you're looking for? Let us know.

Except as otherwise noted, the content of this page is licensed under the Creative Commons BY-NC-SA 3.0 License, and code samples are licensed under the Apache 2.0 License.