Esempio n. 1
0
 def test_clean_whitelist(self):
     html = 'Text <span>with</span> whitelisted <div>html</div>.'
     expect = ('Text <span>with</span> whitelisted &lt;div&gt;html'
               '&lt;/div&gt;.')
     eq_(clean(html, tags=['span']), Markup(expect))
Esempio n. 2
0
 def test_clean_whitelist(self):
     html = 'Text <span>with</span> whitelisted <div>html</div>.'
     expect = ('Text <span>with</span> whitelisted &lt;div&gt;html'
               '&lt;/div&gt;.')
     eq_(clean(html, tags=['span']), Markup(expect))
Esempio n. 3
0
 def test_clean_basic(self):
     html = 'Text <span>with</span> html.'
     expect = 'Text &lt;span&gt;with&lt;/span&gt; html.'
     eq_(clean(html), Markup(expect))
Esempio n. 4
0
 def test_clean_basic(self):
     html = 'Text <span>with</span> html.'
     expect = 'Text &lt;span&gt;with&lt;/span&gt; html.'
     eq_(clean(html), Markup(expect))