Skip to content
Snippets Groups Projects
Commit 75c78c2a authored by Kevin Abel's avatar Kevin Abel
Browse files

Fix not returning outerHTML with cheerio API.

Need to append to new DOM element to get HTML.
parent 287b2130
Branches master
No related tags found
No related merge requests found
......@@ -79,7 +79,7 @@ function parseNavigation(html, baseUrl) {
element.attr('href', realUrl);
});
return navListElement.html();
return $('<div>').append(navListElement).html();
}
function getGz (req) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment