Solution:1
What about this:
<title><?php print str_replace("™", "™", $yourStr); ?></title>
Actually I don´t know is it the best way to do this, but at least it works.
Solution:1
What about this:
<title><?php print str_replace("™", "™", $yourStr); ?></title>
Actually I don´t know is it the best way to do this, but at least it works.
Solution:2
As I understand it you want to replace the ‘™
‘ with ‘(tm)’ in a string in PHP. You can just use the str_replace()
function for that.
It would look something like this
$titleString = "SOME TITLE - Trademark ™ My Company";
$titleStringReplaced = str_replace("™", "(tm)", $titleString);