标签:io ar strong sp on cti html bs htm
// Dumps the internal DOM tree back into string
$str = $html->save();
// Dumps the internal DOM tree back into a file
$html->save(‘result.htm‘);
// Write a function with parameter "$element"
function my_callback($element) {
// Hide all <b> tags
if ($element->tag==‘b‘)
$element->outertext = ‘‘;
}
// Register the callback function with it‘s function name
$html->set_callback(‘my_callback‘);
// Callback function will be invoked while dumping
echo $html;
标签:io ar strong sp on cti html bs htm
原文地址:http://www.cnblogs.com/goAhead-hust/p/4025039.html