Commit 39f2a7dc authored by Dmitry Shelepnev's avatar Dmitry Shelepnev
Browse files

Add escape ampersand caharcter in websym function

parent b3eb6abe
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ def websym(s,attr=False):
    """Replace special web-symbols"""
    result = s
    if attr:
        table = {'"':'\''}
        table = {'"':'\'','&':'&'}
    else:
        table = {'&':'&amp;','<':'&lt;'}
    for k in table.keys():