macOS / binaries /

htmltree

/usr/bin/htmltree
Parse the given html file(s) and dump the parse tree

htmltree - Parse the given HTML file(s) and dump the parse tree with different options.

source: man