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
commit 105f3ee3a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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,