node-htmlparser
node-htmlparser copied to clipboard
Added utility functions to print the dom as html
This change adds DomUtils.printHtml and DomUtils.toHtml helper functions that print the passed-in dom tree as html, trying to preserve the original tree as much as possible (if verbose = true).
This would be useful. I'd like to modify the parsed DOM and print it back out (instead of inspecting the dom, making decisions, and then regexing the original source).
I want this. Any chance of this landing? Are there any other projects that provide this?