def htmlEncode(s, codes=htmlCodes):
    for code in codes:
        s = s.replace(code[0], code[1])
    return s
Returns the HTML encoded version of the given string. This is useful to
dataset/ETHPy150Open binhex/moviegrabber/lib/site-packages/Cheetah/Utils/htmlEncode.py/htmlEncode