nomagick commited on
Commit
74eac2f
·
unverified ·
1 Parent(s): a54816d

fix: remove link url escaping

Browse files
backend/functions/src/services/snapshot-formatter.ts CHANGED
@@ -510,8 +510,7 @@ ${suffixMixins.length ? `\n${suffixMixins.join('\n\n')}\n` : ''}`;
510
  },
511
 
512
  replacement: function (content, node: any) {
513
- let href = node.getAttribute('href');
514
- if (href) href = href.replace(/([()])/g, '\\$1');
515
  let title = cleanAttribute(node.getAttribute('title'));
516
  if (title) title = ' "' + title.replace(/"/g, '\\"') + '"';
517
 
 
510
  },
511
 
512
  replacement: function (content, node: any) {
513
+ const href = node.getAttribute('href');
 
514
  let title = cleanAttribute(node.getAttribute('title'));
515
  if (title) title = ' "' + title.replace(/"/g, '\\"') + '"';
516