def do_striptags(value):
    if hasattr(value, '__html__'):
        value = value.__html__()
    return Markup(unicode(value)).striptags()
Strip SGML/XML tags and replace adjacent whitespace by one space.
dataset/ETHPy150Open IanLewis/kay/kay/lib/jinja2/filters.py/do_striptags