Skip to content

Commit 8859141

Browse files
committed
oembed: fix getting iframe
1 parent 13d534a commit 8859141

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/plugins/system/oembed/oembed.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function _getOembedIframe(oembed) {
4444
html = entities.decodeHTML(html);
4545
}
4646

47-
var $container = cheerio('<div>');
47+
var $container = cheerio.load('<div></div>')('div');
4848
try {
4949
$container.html(html);
5050
} catch (ex) {}

0 commit comments

Comments
 (0)