tidyNode::hasSiblings

(PHP 5 >= 5.0.1, PHP 7) Checks if a node has siblings bool tidyNode::hasSiblings ( void ) Tells if the node has siblings. Returns: Returns TRUE if the node has siblings, FALSE otherwise. Notes: This function was named tidy_node::has_siblings() in PHP 4/Tidy 1. Examples: tidyNode::hasSiblings() example

tidyNode::hasChildren

(PHP 5 >= 5.0.1, PHP 7) Checks if a node has children bool tidyNode::hasChildren ( void ) Tells if the node has children. Returns: Returns TRUE if the node has children, FALSE otherwise. Notes: This function was named tidy_node::has_children() in PHP 4/Tidy 1. Examples: tidyNode::hasChildren() example

tidyNode::getParent

(PHP 5 >= 5.2.2, PHP 7) Returns the parent node of the current node tidyNode tidyNode::getParent ( void ) Returns the parent node of the current node. Returns: Returns a tidyNode if the node has a parent, or NULL otherwise. Examples: tidyNode::hasChildren() example <?php $html = <<< HTML <html><he

tidy::root

(PHP 5, PHP 7, PECL tidy 0.5.2-1.0.0) Returns a tidyNode object representing the root of the tidy parse tree tidyNode tidy::root ( void ) Object oriented style Procedural style tidyNode tidy_get_root ( tidy $object ) Returns a tidyNode object representing the root of the tidy parse tree. Parameters: object The Tidy object. Returns: Returns the t

tidy::repairString

(PHP 5, PHP 7, PECL tidy >= 0.7.0) Repair a string using an optionally provided configuration file string tidy::repairString ( string $data [, mixed $config [, string $encoding ]] ) Object oriented style Procedural style string tidy_repair_string ( string $data [, mixed $config [, string $encoding ]] ) Repairs the given string. Parameters: data The data to be repaired

tidy::repairFile

(PHP 5, PHP 7, PECL tidy >= 0.7.0) Repair a file and return it as a string string tidy::repairFile ( string $filename [, mixed $config [, string $encoding [, bool $use_include_path = false ]]] ) Object oriented style Procedural style string tidy_repair_file ( string $filename [, mixed $config [, string $encoding [, bool $use_include_path = false ]]] ) Repairs the given file and returns it as a string. P

tidy::parseString

(PHP 5, PHP 7, PECL tidy >= 0.5.2) Parse a document stored in a string bool tidy::parseString ( string $input [, mixed $config [, string $encoding ]] ) Object oriented style Procedural style tidy tidy_parse_string ( string $input [, mixed $config [, string $encoding ]] ) Parses a document stored in a string. Parameters: input The data to be parsed.

tidy::parseFile

(PHP 5, PHP 7, PECL tidy >= 0.5.2) Parse markup in file or URI bool tidy::parseFile ( string $filename [, mixed $config [, string $encoding [, bool $use_include_path = false ]]] ) Object oriented style Procedural style tidy tidy_parse_file ( string $filename [, mixed $config [, string $encoding [, bool $use_include_path = false ]]] ) Parses the given file. Parameters: filename

tidy::isXml

(PHP 5, PHP 7, PECL tidy >= 0.5.2) Indicates if the document is a generic (non HTML/XHTML) XML document bool tidy::isXml ( void ) Object oriented style Procedural style bool tidy_is_xml ( tidy $object ) Tells if the document is a generic (non HTML/XHTML) XML document. Parameters: object The Tidy object. Returns: This function returns TRUE if

tidy::isXhtml

(PHP 5, PHP 7, PECL tidy >= 0.5.2) Indicates if the document is a XHTML document bool tidy::isXhtml ( void ) Object oriented style Procedural style bool tidy_is_xhtml ( tidy $object ) Tells if the document is a XHTML document. Parameters: object The Tidy object. Returns: This function returns TRUE if the specified tidy object is a XHTML docum