Esempio n. 1
0
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')
Esempio n. 2
0
 def text(self):
     return striptags(self.html)
Esempio n. 3
0
 def text(self):
     return striptags(self.html)
Esempio n. 4
0
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')