

def test_striptags(self):
    tmpl = env.from_string('{{ foo|striptags }}')
    out = tmpl.render(foo='  <p>just a small   \n <a href="#">example</a> link</p>\n<p>to a webpage</p> <!-- <p>and some commented stuff</p> -->')
    assert (out == 'just a small example link to a webpage')

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/jinja2-2.6/jinja2/testsuite/filters.py FilterTestCase.test_striptags/original