Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solution for languages that render as entities
#1
1) Go to gsconfig.php

and add

Code:
define('GSEDITOROPTIONS',"
entities : false
");

2) in admin\inc\basic.php

locate the safe_slash_html() function and replace htmlentities with htmlspecialchars

Code:
function safe_slash_html($text) {
    if (get_magic_quotes_gpc()==0) {
        $text = addslashes(htmlspecialchars($text, ENT_QUOTES, 'UTF-8'));
    } else {
        $text = htmlentities($text, ENT_QUOTES, 'UTF-8');
    }
    return $text;
}

now greek and other languages will render perfectly in browser instead of entities that affect seo
Reply


Messages In This Thread
Solution for languages that render as entities - by lbasilis - 2011-04-29, 05:08:26



Users browsing this thread: 1 Guest(s)