Originally Posted by
PeauProductions
I am not familiar with the term "clean" in the context of this code (I know it has to do with getting the character code out of the ' ' naming, but don't know what function is doing the "cleaning"). Also I forget how to see the output of the echo function. Do I run it through a program like dreamweaver or does it output on my site somewhere. Thanks for you quick responses.
Code:
// fix new trademark and reg
$type = str_replace('&lt;sup&gt;&amp;reg;&lt;/sup&gt;', '<sup>®</sup>', $type);
$type = str_replace('&lt;sup&gt;&amp;trade;&lt;/sup&gt;', '<sup>™</sup>', $type);
The $type is being cleaned ... you need to test for the cleaned $type not the $type with all the junk in it ...
Bookmarks