Commit 3ce7ea12 authored by Jérome Perrin's avatar Jérome Perrin

corporate_identity: fix a missing html escape

parent 6a2e074c
...@@ -25,6 +25,7 @@ MAIN FILE: generate presentation in different output formats ...@@ -25,6 +25,7 @@ MAIN FILE: generate presentation in different output formats
import re import re
from Products.PythonScripts.standard import html_quote
from base64 import b64encode from base64 import b64encode
blank = '' blank = ''
...@@ -34,7 +35,7 @@ pref = context.getPortalObject().portal_preferences ...@@ -34,7 +35,7 @@ pref = context.getPortalObject().portal_preferences
# ------------------ HTML cleanup/converter methods ---------------------------- # ------------------ HTML cleanup/converter methods ----------------------------
def getHeaderSlideTitle(my_doc): def getHeaderSlideTitle(my_doc):
return '<h1>' + my_doc.getTitle() + '</h1>' return '<h1>' + html_quote(my_doc.getTitle()) + '</h1>'
def getSlideList(my_content): def getSlideList(my_content):
return re.findall(r'<section[^>]*?>(.*?)</section>', my_content, re.S) return re.findall(r'<section[^>]*?>(.*?)</section>', my_content, re.S)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment