Commit b78edae 1 parent 747d8c4 commit b78edae Copy full SHA for b78edae
File tree 1 file changed +4
-7
lines changed
quintagroup/seoptimizer/browser
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -92,16 +92,13 @@ def listMetaTags(self):
92
92
# Special cases
93
93
if accessor == 'Description' and \
94
94
not 'description' in metadata_names :
95
- result ['description' ] = value
95
+ result ['description' ] = escape ( value )
96
96
elif accessor == 'Subject' and \
97
97
not 'keywords' in metadata_names :
98
- result ['keywords' ] = value
98
+ result ['keywords' ] = escape ( value )
99
99
100
100
if accessor not in ('Description' , 'Subject' ):
101
- if accessor == 'seo_description' :
102
- result [key ] = escape (value )
103
- else :
104
- result [key ] = value
101
+ result [key ] = escape (value )
105
102
106
103
if use_all :
107
104
created = self .context .CreationDate ()
@@ -146,7 +143,7 @@ def listMetaTags(self):
146
143
seo_context ['seo_customMetaTags' ] or []
147
144
for tag in custom_meta_tags :
148
145
if tag ['meta_content' ]:
149
- result [tag ['meta_name' ]] = tag ['meta_content' ]
146
+ result [tag ['meta_name' ]] = escape ( tag ['meta_content' ])
150
147
151
148
return result
152
149
You can’t perform that action at this time.
0 commit comments