I'm having some trouble decoding & to & within a mail function:
This is the code:
$betreff = $_REQUEST["Betreff"];
$betreffUTF8 = "=?UTF-8?B?".base64_encode($betreff)."?=";
$betreffFinal = str_replace('$amp;', '&', $betreffUTF8);
I'm pretty sure it should work like that, but for some reason it doesn't.
Any idea?
Update: Yes, the $amp; was just a typo.
It's &, not $amp;.
$betreffFinal = str_replace('&', '&', $betreffUTF8);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With