1
0
mirror of synced 2025-12-22 11:26:57 -05:00
This commit is contained in:
Octomerger Bot
2021-03-05 04:52:15 +10:00
committed by GitHub
parent 136a6bd1a3
commit cedfe4dd59
15 changed files with 226 additions and 16 deletions

View File

@@ -66,6 +66,10 @@ module.exports = async function renderContent (
.trim()
}
if (options.cheerioObject) {
return cheerio.load(html, { xmlMode: true })
}
if (options.encodeEntities) html = entities.encode(html)
return html.trim()