Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Guinness
wantzel
Commits
ca0fb68e
Commit
ca0fb68e
authored
May 21, 2015
by
Mindiell
Browse files
moar html entities conversion
parent
22404073
Changes
1
Hide whitespace changes
Inline
Side-by-side
wantzel.py
View file @
ca0fb68e
...
...
@@ -71,10 +71,11 @@ def get_title(message):
pass
# Unescaping HTML entities
if
title
:
title
=
re
.
sub
(
">"
,
">"
,
title
)
title
=
re
.
sub
(
"<"
,
"<"
,
title
)
title
=
re
.
sub
(
"""
,
'"'
,
title
)
title
=
re
.
sub
(
"&"
,
"&"
,
title
)
title
=
re
.
sub
(
">|>"
,
">"
,
title
)
title
=
re
.
sub
(
"<|<"
,
"<"
,
title
)
title
=
re
.
sub
(
""|""
,
'"'
,
title
)
title
=
re
.
sub
(
"'|'"
,
"'"
,
title
)
title
=
re
.
sub
(
"&|&"
,
"&"
,
title
)
return
(
title
,
website
)
def
is_moderator
(
name
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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