[pmwiki-users] Added meta tags and schema.org microdata injection into pages

Petko Yotov 5ko at 5ko.fr
Mon Oct 3 21:25:57 CDT 2011


On Tuesday 04 October 2011 04:05:26, Carlos AB wrote :
> You are right, is other encoding needed for meta tags?

Actually, you may escape the double and single quotes:

  str_replace(array('"',"'"),array('"','''), $o['title'])

instead of the current     $o['title'].

The unescaped quotes in your properties may cause incorrect or incomplete 
meta tags.

Petko



More information about the pmwiki-users mailing list