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>

Examples

var parser = new tinymce.html.DomParser({validate: true}, schema);
var rootNode = parser.parse('<h1>content</h1>');

Methods

Method Defined By
Constructs a new DomParser instance.
tinymce.html.DomParser
Adds a node filter function to the parser, the parser will collect the specified nodes by name and then execute the call...
tinymce.html.DomParser
Adds a attribute filter function to the parser, the parser will collect nodes that has the specified attributes and then...
tinymce.html.DomParser
Parses the specified HTML string into a DOM like node tree and returns the result.
tinymce.html.DomParser