Fix HTML escape of "'".
This commit is contained in:
@@ -13,7 +13,7 @@ def html_escape(string):
|
||||
"""
|
||||
Function for escaping certain symbols to XML-compatible sequences.
|
||||
"""
|
||||
html_codes = [("'", '''), ('"', '"'), ('&', '&'),
|
||||
html_codes = [("'", '''), ('"', '"'), ('&', '&'),
|
||||
('<', '<'), ('>', '>')]
|
||||
for i in html_codes:
|
||||
string = string.replace(i[0], i[1])
|
||||
|
||||
Reference in New Issue
Block a user