mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
each stripped tag will be replace by a space, #3355
This commit is contained in:
parent
ee667634ab
commit
8ea3608bf1
@ -100,7 +100,7 @@ class NoteContentFulltextExp extends Expression {
|
||||
if (type === 'text' && mime === 'text/html') {
|
||||
if (!this.raw && content.length < 20000) { // striptags is slow for very large notes
|
||||
// allow link to preserve URLs: https://github.com/zadam/trilium/issues/2412
|
||||
content = striptags(content, ['a']);
|
||||
content = striptags(content, ['a'], ' ');
|
||||
|
||||
// at least the closing tag can be easily stripped
|
||||
content = content.replace(/<\/a>/ig, "");
|
||||
|
Loading…
x
Reference in New Issue
Block a user