We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 894b08a commit ee608fcCopy full SHA for ee608fc
src/services/notes.js
@@ -519,7 +519,7 @@ function downloadImages(noteId, content) {
519
let imageMatch;
520
521
while (imageMatch = imageRe.exec(content)) {
522
- const url = imageMatch[1];
+ let url = imageMatch[1];
523
const inlineImageMatch = /^data:image\/[a-z]+;base64,/.exec(url);
524
525
if (inlineImageMatch) {
@@ -541,6 +541,8 @@ function downloadImages(noteId, content) {
541
continue;
542
}
543
544
+ url = utils.unescapeHtml(url);
545
+
546
if (url in imageUrlToAttachmentIdMapping) {
547
const attachment = becca.getAttachment(imageUrlToAttachmentIdMapping[url]);
548
0 commit comments