def test_preserve_refs():
 text = u'la philologie m&#x00e8;ne au pire'
 assert (strip_tags(text) == u'la philologie m\xe8ne au pire')
 text = u'la philologie m&#232;ne au pire'
 assert (strip_tags(text) == u'la philologie m\xe8ne au pire')
 text = u'veer &amp; wander'
 assert (strip_tags(text) == 'veer & wander')

def test_preserve_refs ( ) : text = u'la philologie m&#x00e8;ne au pire' assert ( strip_tags ( text ) == u'la philologie m\xe8ne au pire' ) text = u'la philologie m&#232;ne au pire' assert ( strip_tags ( text ) == u'la philologie m\xe8ne au pire' ) text = u'veer &amp; wander' assert ( strip_tags ( text ) == 'veer & wander' )
test that html character/entity references are preserved when we strip tags .