GetSimple Support Forum
Solution for languages that render as entities - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Scripts & Components (http://get-simple.info/forums/forumdisplay.php?fid=11)
+--- Thread: Solution for languages that render as entities (/showthread.php?tid=1622)



Solution for languages that render as entities - lbasilis - 2011-04-29

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


Solution for languages that render as entities - Connie - 2011-04-29

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!


Solution for languages that render as entities - Ampersand - 2011-10-20

Precise link

http://get-simple.info/wiki/how_to:editor_configuration_more_options#entities_and_special_characters


Solution for languages that render as entities - Ampersand - 2011-10-20

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).


Solution for languages that render as entities - n00dles101 - 2012-02-13

This has been resolved in the latest SVN version,

I'll release a Beta Featured version in the next couple of days...