I've got a weird problem with Swiftmailer 5.x:
$mailUrl = htmlspecialchars("$serverDiff/test/?action=passwordreset&token=$user_token");
$mailtext = "Für Ihren Account wurde das Zurücksetzen des Passwortes veranlasst. Bitte gehen Sie über folgenden Link, um dies einzugeben: $mailUrl";
$mailtext = $textclass->text($mailtext);
This always returns & token=
which, of course, is wrong. No matter how often I try to utf8_decode, encode, htmlspecialchars it or just try using the xhtml or unicode for the ampersand it still switches to &
Does anybody have an idea how to fix this? I already asked a bunch of colleagues and friends and no one knows ... Thank you very much!