Python lxml etree remove tail from element
<p>I have an element which contains a <code>&lt;p&gt;</code> element and a tail. </p>

<p>for example:<br>
<code>&lt;p&gt;Content that I want to keep&lt;/p&gt;content that I want removed</code></p>

<p>I notice that the content that needs to be removed is in the tail, and I would think that there is an easy way to remove the tail from an element using etree.   </p>

<p>How would I be able to do that?</p>