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
#2
Yassou Ibasilis,

this is already explained in our WIKI,

Quote:Entities and Special Characters

By default, the editor converts special characters like umlauts (üäö …) to their HTML-equivalents. This is not needed anymore if you encode your pages in UTF-8. So you can set this option to false.

see here:

http://get-simple.info/wiki/how_to:wysiwyg_editor

It's good that it works for you!
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#3
Precise link

http://get-simple.info/wiki/how_to:edito...characters
Reply
#4
Connie Wrote:By default, the editor converts special characters like umlauts (üäö …) to their HTML-equivalents. This is not needed anymore if you encode your pages in UTF-8. So you can set this option to false.

This refers only to WYSIWYG editor namely CKeditor.

I switched this editor off and still have entities like the famous &oacute. I even hacked basic.php according to the above, and still get have entities in page content. HTML <title>s hower render without entities (as of 3.0).
Reply
#5
This has been resolved in the latest SVN version,

I'll release a Beta Featured version in the next couple of days...
My Github Repos: Github
Website: DigiMute
Reply




Users browsing this thread: 1 Guest(s)