Strip utm_* tracking

This commit is contained in:
the-djmaze 2022-01-13 11:10:40 +01:00
parent 4fa37ce187
commit b1bbd58e21

View file

@ -461,6 +461,9 @@ export const MessageUserStore = new class {
}
}
// Strip utm_* tracking
resultHtml = resultHtml.replace(/(\\?|&|&)utm_[a-z]+=[a-z0-9_-]*/si, '$1');
body = Element.fromHTML('<div id="' + id + '" hidden="" class="b-text-part '
+ (isHtml ? 'html' : 'plain') + '">'
+ resultHtml