title: lxml - ignore <br> tag in html
body: <p>I wrote a tiny html-parser in Python using lxml. It's very useful, but I have a problem.</p>
  
  <p>I have the following code:</p>
  
  <pre><code>tags = doc.xpath('//table//tr/td[@align="right"]/b')
  for tag in tags:
      print(x.text.strip())
  </code></pre>
  
  <p>It works fine. But if there is a <code>&lt;br&gt;</code> tag inside a <code>&lt;b&gt;</code> element, like this:</p>
  
  <pre><code>&lt;b&gt; first-half &lt;br&gt;
      second-half &lt;/b&gt;
  </code></pre>
  
  <p>this code will only print <code>first-half</code> into the <code>&lt;b&gt;</code> tag.</p>
  
  <p>How can I get all of text in <code>&lt;b&gt;</code> even if there is a <code>&lt;br&gt;</code> tag?</p>
  
  <p>Thanks.</p>