mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader.git
synced 2025-08-20 01:09:06 +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) {
|
replacement: function (content, node: any) {
|
||||||
let href = node.getAttribute('href');
|
const href = node.getAttribute('href');
|
||||||
if (href) href = href.replace(/([()])/g, '\\$1');
|
|
||||||
let title = cleanAttribute(node.getAttribute('title'));
|
let title = cleanAttribute(node.getAttribute('title'));
|
||||||
if (title) title = ' "' + title.replace(/"/g, '\\"') + '"';
|
if (title) title = ' "' + title.replace(/"/g, '\\"') + '"';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user