delete an HTML tag while keeping its content

Stefan Behnel stefan_ml at
Sun Sep 7 07:56:17 CEST 2008

[fixing the subject appropriately]

Jackie Wang wrote:
> How should I delete the 'font' tags while keeping the content inside?

Amongst many other goodies for working with HTML, the Elements in lxml.html
have a ".drop_tag()" method specifically for that purpose.


More information about the Python-list mailing list