def test_striptags(): assert_equal(striptags('foo <b>bar</b> foo<ins>baaaar</ins>'), u'foo bar foobaaaar') # test that tags etc. are stripped as well assert_equal(striptags('<fooo<bar>>baz'), u'>baz')
def text(self): return striptags(self.html)