Open samfeder opened 4 years ago
My code is working 99.9999% of the time:
domtoimage.toBlob(document.getElementById('feedback-details'), { filter: (node) => { return !(node.hasAttribute ? node.hasAttribute('data-hideFromSaveImage') : false); } }) .then((blob) => { FileSaver.saveAs(blob, 'my-node.png'); }); }
when my node has an encoded URL with an ampersand, like this: https://www.edx.org/course?subject=Data%20Analysis%20%26%20Statistics, I get the attached error. I also get the error when I change the URL to just %26.
https://www.edx.org/course?subject=Data%20Analysis%20%26%20Statistics
%26
2.5.2
me too
Use case: description, code
My code is working 99.9999% of the time:
Expected behavior
Actual behavior (stack traces, console logs etc)
when my node has an encoded URL with an ampersand, like this:
https://www.edx.org/course?subject=Data%20Analysis%20%26%20Statistics
, I get the attached error. I also get the error when I change the URL to just%26
.Library version
2.5.2
Browsers