I'm making a bookmarklet for a website that will need to parse multiple pages. I tried DOMParser
, but it gives an error with the xml option and returns null with html. I tried jQuery, but I'm sure that's using DOMParser somewhere along the way. It does work correctly with PHP, but I'd rather not have to make twice as many requests to webpages.
I'm looking for a standalone javascript plugin to parse xml or html.
Thanks!