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

Electron: Prevent URLs added via A tag from being opened inside app

This commit is contained in:
Laurent Cozic
2018-10-05 18:21:23 +00:00
parent 5ed458f634
commit 57fd1a7588
4 changed files with 24 additions and 5 deletions

View File

@@ -206,4 +206,8 @@ function toTitleCase(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
}
function urlDecode(string) {
return decodeURIComponent((string+'').replace(/\+/g, '%20'));
}
module.exports = { removeDiacritics, escapeFilename, wrap, splitCommandString, padLeft, toTitleCase };