tidyNode::isAsp Checks if this node is ASP &reftitle.description; public booltidyNode::isAsp Tells whether the current node is ASP. &reftitle.parameters; &no.function.parameters; &reftitle.returnvalues; Returns &true; if the node is ASP, &false; otherwise. &reftitle.examples; Extract ASP code from a mixed HTML document title'; ?> <# /* JSTE code */ alert('Hello World'); #> <% /* ASP code */ response.write("Hello World!") %> Hello World Outside HTML HTML; $tidy = tidy_parse_string($html); $num = 0; get_nodes($tidy->html()); function get_nodes($node) { // check if the current node is of requested type if($node->isAsp()) { echo "\n\n# asp node #" . ++$GLOBALS['num'] . "\n"; echo $node->value; } // check if the current node has childrens if($node->hasChildren()) { foreach($node->child as $child) { get_nodes($child); } } } ?> ]]> &example.outputs; ]]>