This array is used to compare opening and closing tags within the document structure, and to try to repair them by inserting missing tags where necessary.
This tells Messy whether to use the stripTags and stripAttrs lists
or the stripTagsSafe and stripAttrsSafe lists, which contain additional tags and attributes that are considered potentially unsafe. The default is to use the latter and be more secure by default.
Parses the given HTML or XML $data into an array of
"tokens", which are associative arrays with the following properties: tag (the name of the tag), attributes (a key/value array of tag attributes/properties), level (the depth of this tag within the document), type (either 'open', 'complete'
as in self-closing, 'cdata' - as in Character DATA, or
'close'), and the value of the tag (AKA the contents of it). This is also stored in the $output property of your Messy object.
Uses the internal $output array from a previous call to parse() and returns an XMLDoc object representation of the document. Sets $error, $err_code, $err_line, etc.
from the SloppyDOM error values and returns false should an error occur, which it easily could because there's no guarantee "cleaned up" markup is necessarily correctly formatted markup.