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 e6f773f commit 7367cb2Copy full SHA for 7367cb2
src/lib/svg_text_utils.js
@@ -256,7 +256,7 @@ function convertToSVG(_str){
256
else if(extra.substr(0,4).toLowerCase() !== 'href') return '<a>';
257
else {
258
var dummyAnchor = document.createElement('a');
259
- dummyAnchor.href = extra.split('href=')[1].replace(/["']/g, '');
+ dummyAnchor.href = extra.substr(4).replace(/["'=]/g, '');
260
261
if(PROTOCOLS.indexOf(dummyAnchor.protocol) === -1) return '<a>';
262
0 commit comments