PATH:
home
/
lab2454c
/
keebchat.com
/
core
/
libs
/
htmlParser
/
manual
/
docs
/
manual
--- title: Customizing Parsing behavior --- ```php // 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; ```
[+]
..
[-] customizing-parsing-behavior.md
[edit]
[-] creating-dom-objects.md
[edit]
[-] adding-nodes.md
[edit]
[-] traversing-dom-tree.md
[edit]
[-] finding-html-elements.md
[edit]
[-] saving-dom-objects.md
[edit]
[-] accessing-element-attributes.md
[edit]