From d1f21573e61b339684e8b0d2b46cbdbe110efc93 Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Tue, 7 Jul 2015 12:28:09 -0700 Subject: [PATCH] customembed: don't parse in xmlMode This fixes an issue where weren't being parsed correctly because they are self-closing HTML5 tags. --- lib/customembed.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/customembed.js b/lib/customembed.js index b9814109..81abeb71 100644 --- a/lib/customembed.js +++ b/lib/customembed.js @@ -11,8 +11,7 @@ function sha256(input) { function filter(input) { var $ = cheerio.load(input, { lowerCaseTags: true, - lowerCaseAttributeNames: true, - xmlMode: true + lowerCaseAttributeNames: true }); var meta = getMeta($); var id = "cu:" + sha256(input);