Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
nexedi
erp5
Commits
7049cc93
Commit
7049cc93
authored
1 year ago
by
Jérome Perrin
Committed by
Arnaud Fontaine
7 months ago
Browse files
Options
Download
Email Patches
Plain Diff
web py3
parent
a2a3e3cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
bt5/erp5_web/ExtensionTemplateItem/portal_components/extension.erp5.WebUtility.py
...mplateItem/portal_components/extension.erp5.WebUtility.py
+10
-2
No files found.
bt5/erp5_web/ExtensionTemplateItem/portal_components/extension.erp5.WebUtility.py
View file @
7049cc93
...
...
@@ -25,7 +25,10 @@
#
##############################################################################
import
six
from
six.moves.html_parser
import
HTMLParser
class
HtmlParseHelper
(
HTMLParser
):
"""
Listens to all the HTMLParser methods and push results in a list of tuple.
...
...
@@ -131,5 +134,10 @@ def parseCssForUrl(text):
result
.
append
((
"data"
,
data
))
return
result
def
unescape
(
self
,
html
):
return
HTMLParser
().
unescape
(
html
)
if
six
.
PY2
:
def
unescape
(
self
,
html
):
return
HTMLParser
().
unescape
(
html
)
else
:
from
html
import
unescape
as
html_unescape
def
unescape
(
self
,
html
):
return
html_unescape
(
self
,
html
)
This diff is collapsed.
Click to expand it.
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