mirror of
https://github.com/zadam/trilium.git
synced 2026-01-05 23:19:56 +01:00
each stripped tag will be replace by a space, #3355
This commit is contained in:
@@ -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, "");
|
||||
|
||||
Reference in New Issue
Block a user