Added utility functions to print the dom as html #18

wants to merge 1 commit into


None yet
3 participants

tomdz commented Mar 28, 2011

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

incompl commented Jun 27, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment