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