jsocol/bleach — Issue #51: delinkify doesn't remove <a>s if there is no whitespace around them
Author: pcraciunoiu
Created: 2011-11-04 11:09:52+00:00
State: open

So this is an edge case, but still, here's the test:

def test_delinkify_no_whitespace():
html = ('a'
'b'
'c'
'd')
eq_('abcd', bleach.delinkify(html))

This passes:

def test_delinkify_no_whitespace():
html = ('a'
'b '
'c '
'd')
eq_('abcd', bleach.delinkify(html))