예제 #1
0
파일: test_utils.py 프로젝트: EnTeQuAk/dmlt
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
파일: node.py 프로젝트: EnTeQuAk/dmlt
 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')