Skip to content

Commit e9ad5a7

Browse files
committed
extended the escaping function
1 parent 7e0078a commit e9ad5a7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

quintagroup/seoptimizer/browser/viewlets.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from cgi import escape
1+
import cgi
22
from DateTime import DateTime
33
from Acquisition import aq_inner
44

@@ -17,6 +17,12 @@
1717
from Products.CMFPlone.PloneTool import FLOOR_DATE, CEILING_DATE
1818

1919

20+
def escape(value):
21+
"""Extended escape"""
22+
value = cgi.escape(value, True)
23+
return value.replace("'","'")
24+
25+
2026
class SEOTagsViewlet(ViewletBase):
2127
""" Simple viewlet for custom title rendering.
2228
"""

0 commit comments

Comments
 (0)