How to convert back to HTML
Hi, great library, using it quickly parse HTML, is there a utility method that can convert modified tree back to HTML?
I'm afraid it's not supported yet. However you could easily implement one by refering to https://github.com/ashi009/node-fast-html-parser/blob/master/index.js#L117.
It will be so kind if @ashi009 could provide one. I need this too.
If anyone wants to convert back to string, see node-html-parser
@taoqf I changed some attributes and...the outterHTML has not changed...any idea why?
@felipenmoura You mean in node-html-parser? I did not do much about attributes except query. maybe it will be slower after converting to html if attributes changes, so i suggest you use other module, like browser-env
Hi @taoqf I am trying to use node-html-parser so i can use outerHTML, but am getting some mysterious errors -- https://github.com/publiclab/inline-markdown-editor/pull/52 and https://travis-ci.org/publiclab/inline-markdown-editor/jobs/502286448 -- that didn't occur with fast-html-parser. Am I doing something wrong in how I'm including it there?
Noting that it works fine in a browser, it just fails our Jasmine tests. Any help appreciated!