In my database, some products have a “next to” symbol. This is written to the database using ™. However, when I repeat this from the database, it literally outputs ™instead of the actual character.
™
Any ideas on how I can avoid this and make it actually display a character?
Maybe this might work if you try to replace & trade with the code specified by @wild.
$string = "™ here is a string"; $search = "™"; $replace = '™'; echo str_replace($search, $replace, $string);
use this code where you want to print TM
echo '™';