Code: Select all
ereg_replace ("'", "'", $text);The code line is within function where other lines work perfectly.
Code: Select all
function convert_quotes ($text) {
$text = ereg_replace ('"', """, $text);
$text = ereg_replace ("'", "", $text);
$text = ereg_replace ('“', "“", $text);
$text = ereg_replace ('”', "”", $text);
$text = ereg_replace ('‘', "‘", $text);
$text = ereg_replace ('’', "’", $text);
$text = ereg_replace ('«', "«", $text);
$text = ereg_replace ('»', "»", $text);
return $text;
}I tried escaping single quote, used other similar functions (preg_replace, str_replace) - nope.
Tried htmlspecialchars - nope.
I did look at html source. Did read FAQs and manuals. I tried hard to google. I posted to other help forum. With no luck so far.
I have standard CentOS build, did not edit php.ini. Here is php_ini page http://maidan.org.ua/test.php
What would be wrong there?
Any help would ne much appreciated.