mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
ImportHTML: don't remove new lines from HTML before feeding it to cheerio
This commit is contained in:
parent
de2f6fc55b
commit
25d87260e5
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue