mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader.git
synced 2025-08-19 15:29:05 +08:00
fix: remove link url escaping
This commit is contained in:
parent
a54816d12d
commit
74eac2fc18
@ -510,8 +510,7 @@ ${suffixMixins.length ? `\n${suffixMixins.join('\n\n')}\n` : ''}`;
|
||||
},
|
||||
|
||||
replacement: function (content, node: any) {
|
||||
let href = node.getAttribute('href');
|
||||
if (href) href = href.replace(/([()])/g, '\\$1');
|
||||
const href = node.getAttribute('href');
|
||||
let title = cleanAttribute(node.getAttribute('title'));
|
||||
if (title) title = ' "' + title.replace(/"/g, '\\"') + '"';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user