Closed GoogleCodeExporter closed 9 years ago
import html5lib
p = html5lib.HTMLParser()
doc = p.parse("<a name='anchor_name'></a>")
print html5lib.serialize(doc)
Original comment by t.broyer
on 16 Jan 2012 at 6:19
Ok, thanks.
Actually i'm using django with django-cms 2.0. When django cms saves a text
(formatted with TinyMCE), it sanitize the content with html5lib.
So when I enter "<a name='anchor'></a>", django-cms saves "<a name='anchor'/>"
into database.
It looks like it's a django-cms problem.
Thanks for the quick answer !
Original comment by adrien.d...@gmail.com
on 17 Jan 2012 at 11:07
Original issue reported on code.google.com by
adrien.d...@gmail.com
on 16 Jan 2012 at 3:28