wrap document fragment in the <html> and <body> in order to parse the HTML correctly
This commit is contained in:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user