Browse Source

Fix links with &

master
Eduard Kuzmenko 3 years ago
parent
commit
373fa01b6e
  1. 4
      .env
  2. 4
      src/lib/richtextprocessor.ts

4
.env

@ -1,5 +1,5 @@
API_ID=1025907 API_ID=1025907
API_HASH=452b0359b988148995f22ff0f4229750 API_HASH=452b0359b988148995f22ff0f4229750
VERSION=1.4.3 VERSION=1.4.3
VERSION_FULL=1.4.3 (171) VERSION_FULL=1.4.3 (172)
BUILD=171 BUILD=172

4
src/lib/richtextprocessor.ts

@ -756,8 +756,8 @@ namespace RichTextProcessor {
} }
const href = (currentContext || typeof electronHelpers === 'undefined') const href = (currentContext || typeof electronHelpers === 'undefined')
? encodeEntities(url) ? url
: `javascript:electronHelpers.openExternal('${encodeEntities(url)}');`; : `javascript:electronHelpers.openExternal('${url}');`;
element = document.createElement('a'); element = document.createElement('a');
element.className = 'anchor-url'; element.className = 'anchor-url';

Loading…
Cancel
Save