ImportHTML: don't remove new lines from HTML before feeding it to cheerio

This commit is contained in:
webzwo0i 2020-11-10 08:11:25 +01:00
parent de2f6fc55b
commit 25d87260e5

View file

@ -33,7 +33,7 @@ exports.setPadHTML = async (pad, html) => {
rehype()
.use(format, opts)
.process(html, function(err, output){
html = String(output).replace(/(\r\n|\n|\r)/gm,"");
html = String(output);
})
var $ = cheerio.load(html);