mirror of https://github.com/calzoneman/sync.git
customembed: don't parse in xmlMode
This fixes an issue where <params> weren't being parsed correctly because they are self-closing HTML5 tags.
This commit is contained in:
parent
c212d32a6e
commit
d1f21573e6
|
@ -11,8 +11,7 @@ function sha256(input) {
|
||||||
function filter(input) {
|
function filter(input) {
|
||||||
var $ = cheerio.load(input, {
|
var $ = cheerio.load(input, {
|
||||||
lowerCaseTags: true,
|
lowerCaseTags: true,
|
||||||
lowerCaseAttributeNames: true,
|
lowerCaseAttributeNames: true
|
||||||
xmlMode: true
|
|
||||||
});
|
});
|
||||||
var meta = getMeta($);
|
var meta = getMeta($);
|
||||||
var id = "cu:" + sha256(input);
|
var id = "cu:" + sha256(input);
|
||||||
|
|
Loading…
Reference in New Issue