Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eteri
erp5
Commits
3ce7ea12
Commit
3ce7ea12
authored
Dec 16, 2022
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
corporate_identity: fix a missing html escape
parent
6a2e074c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewAsSlideshow.py
..._skins/erp5_corporate_identity/WebPage_viewAsSlideshow.py
+2
-1
No files found.
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewAsSlideshow.py
View file @
3ce7ea12
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment