Add rel="noreferrer" to created links in received messages
This commit is contained in:
parent
ab67c5858d
commit
40379acc6c
|
@ -2101,7 +2101,7 @@ class ReceiveTextDialog extends Dialog {
|
||||||
let linkNodePlaceholder = `${p}${m}`;
|
let linkNodePlaceholder = `${p}${m}`;
|
||||||
|
|
||||||
// add linkNodePlaceholder to text node and save a reference to linkNodes object
|
// add linkNodePlaceholder to text node and save a reference to linkNodes object
|
||||||
linkNodes[linkNodePlaceholder] = `<a href="${link}" target="_blank">${url}</a>`;
|
linkNodes[linkNodePlaceholder] = `<a href="${link}" target="_blank" rel="noreferrer">${url}</a>`;
|
||||||
return `${whitespaceOrSpecial}${linkNodePlaceholder}`;
|
return `${whitespaceOrSpecial}${linkNodePlaceholder}`;
|
||||||
}
|
}
|
||||||
// link is not valid -> do not replace
|
// link is not valid -> do not replace
|
||||||
|
|
Loading…
Reference in New Issue