CMS MADE SIMPLE FORGE

SEO Tools

 

[#5942] not usable with accent

avatar
Created By: Philippe Thomas (filto)
Date Submitted: Wed Jan 05 21:16:14 -0500 2011

Assigned To:
Version: 1.1
CMSMS Version: None
Severity: None
Resolution: Awaiting Response
State: Open
Summary:
not usable with accent
Detailed Description:
i do not use this module but i had seen these bugs :


accents brake the code of meta :

module is not usable with language like french.

try to put a description like : l'exemple

 -> invalid html code for meta description! 

+

empty line in generated robots.txt    (will not work)

+
don't need  to reveal the complete admin repertory in robot.txt

/admin

better than

/adminxxxx/

+
no coma generated






History

Comments
avatar
Date: 2011-01-06 07:30
Posted By: Henning Schaefer (hschaefer)

How do you properly escape accents in meta descriptions?

The second one makes sense and will be fixed in 1.2, the third one is also fixed
in 1.2.
      
avatar
Date: 2011-01-06 18:19
Posted By: Philippe Thomas (filto)

you can do it like this:

in you code where meta lines is create, replace ' by "
in order to create meta like this

<meta name="description" content="description" />
<meta name="keywords" content="keywords" />

to prevent to have the same bug with " as it was with '
clean the the content of your variable description before it is generate 
(i hadn't search the real name of this variable)

put something like :

$description = str_replace('"','',$description);


it will prevent bugs if there is some " in description


then, if user set description with this :

L'exemple avec des "codes" spéciaux

it will generate a meta description :

<meta name="description" content="L'exemple avec des codes spéciaux" />

all " will be escape

i hope that will help you
      
Updates

Updated: 2011-01-06 07:30
resolution_id: => 10