Merge pull request #2493 from omnivore-app/fix/zero-utterance

wrap document fragment in the <html> and <body> in order to parse the HTML correctly
This commit is contained in:
Hongbo Wu
2023-07-17 16:54:04 +08:00
committed by GitHub

View File

@ -248,7 +248,7 @@ export const parsePreparedContent = async (
if (!article?.textContent && allowRetry) {
const newDocument = {
...preparedDocument,
document: '<html>' + document + '</html>',
document: '<html><body>' + document + '</body></html>', // wrap in body
}
return parsePreparedContent(
url,