I have been trying to remove junk character from a stream of html strings using PHP but haven't been successfull yet. Is there any special syntax or logics to remove special character from the string?
I had tried this so far, but ain't working
$new_string = preg_replace("�", "", $HtmlText);
echo '<pre>'.$new_string.'</pre>';
This is due to mismatch in Charset between database and front-end. Correcting this will fix the issue.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments