What is a good way to replace an HTML tag like:
Old : <div id=pgbrk" ....../>....Page Break....</div>
New : <!--page break -->
div id might have many other values hence regex is not a good idea. I need some LXML kind of thing. Basically, my problem is to replace an HTML tag with a string!