1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-26 22:41:17 +02:00

Electron: Fixed: Confirmation message boxes, and release notes text

This commit is contained in:
Laurent Cozic
2018-02-16 18:06:02 +00:00
parent a796ef5c66
commit 7244e12b78
2 changed files with 4 additions and 2 deletions

View File

@@ -16,6 +16,8 @@ autoUpdater.autoDownload = false;
function htmlToText_(html) {
let output = html.replace(/\n/g, '');
output = output.replace(/<li>/g, '- ');
output = output.replace(/<p>/g, '');
output = output.replace(/<\/p>/g, '\n');
output = output.replace(/<\/li>/g, '\n');
output = output.replace(/<ul>/g, '');
output = output.replace(/<\/ul>/g, '');