Пример #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')
Пример #2
0
 def text(self):
     return striptags(self.html)
Пример #3
0
 def text(self):
     return striptags(self.html)
Пример #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')