def encode_entities(string):
    if isinstance(string, basestring):
        string = RE_AMPERSAND.sub("&amp;", string)
        string = string.replace("<", "&lt;")
        string = string.replace(">", "&gt;")
        string = string.replace('"', "&quot;")
        string = string.replace("'", "&#39;")
    return string
Registers the given task with its name
dataset/ETHPy150Open clips/pattern/pattern/server/__init__.py/encode_entities--crossover with--dataset/ETHPy150Open zynga/jasy/jasy/env/Task.py/addTask