node-htmlparser icon indicating copy to clipboard operation
node-htmlparser copied to clipboard

Added utility functions to print the dom as html

Open tomdz opened this issue 13 years ago • 2 comments

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).

tomdz avatar Mar 28 '11 23:03 tomdz

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).

vilmibm avatar Apr 20 '11 16:04 vilmibm

I want this. Any chance of this landing? Are there any other projects that provide this?

incompl avatar Jun 27 '14 19:06 incompl