mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
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:
commit
105f3ee3a5
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue