@register.filter
def strip_controls(s):
    # Translation table of control characters.
    control_trans = dict((n, None) for n in xrange(32) if n not in [10, 13])
    rv = unicode(s).translate(control_trans)
    return jinja2.Markup(rv) if isinstance(s, jinja2.Markup) else rv
Display the game's metrics
dataset/ETHPy150Open mozilla/addons-server/src/olympia/amo/helpers.py/strip_controls--crossover with--dataset/ETHPy150Open turbulenz/turbulenz_local/turbulenz_local/controllers/localv1/metrics.py/MetricsController.overview