Skip to content

Commit

Permalink
fixes parsing of HTML content, re: #34
Browse files Browse the repository at this point in the history
  • Loading branch information
robgaston committed Aug 3, 2020
1 parent cea847a commit 5273c30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/fetch-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function fetchHTML(url, content) {
.then((text) => {
const parser = new DOMParser();
const doc = parser.parseFromString(text, 'text/html');
return content(doc.querySelector('body').textContent);
return content(doc.querySelector('body').innerHTML);
});
return content;
}

0 comments on commit 5273c30

Please sign in to comment.