quotes should keep new lines

This commit is contained in:
Régis Hanol 2017-03-24 01:07:32 +01:00
parent 65081a9193
commit 5d9cba5581
1 changed files with 2 additions and 0 deletions

View File

@ -104,6 +104,8 @@ export function selectedText() {
$div.find(".clicks").remove();
// replace emojis
$div.find("img.emoji").replaceWith(function() { return this.title; });
// replace br with newlines
$div.find("br").replaceWith(() => "\n")
return String($div.text()).trim();
}