Skip to content

Commit 2aa1347

Browse files
committed
add option to return cheerio object from renderContent instead of html
1 parent 6fa5bd6 commit 2aa1347

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/render-content/renderContent.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ module.exports = async function renderContent (
6666
.trim()
6767
}
6868

69+
if (options.cheerioObject) {
70+
return cheerio.load(html, { xmlMode: true })
71+
}
72+
6973
if (options.encodeEntities) html = entities.encode(html)
7074

7175
return html.trim()

0 commit comments

Comments
 (0)