title: Extract text from HTML Tags and plain text (not wrapped in tags)
body: <pre><code>&lt;p class="qotCJE"&gt;
  &lt;a href="https://ejje.weblio.jp/content/to+pay" title="to payの意味" class="crosslink"&gt;to pay&lt;/a&gt; 
  &lt;a href="https://ejje.weblio.jp/content/charges" title="chargesの意味" class="crosslink"&gt;charges&lt;/a&gt; 
  from one's 
  &lt;a href="https://ejje.weblio.jp/content/bank+account" title="bank accountの意味" class="crosslink"&gt;bank account&lt;/a&gt;
  &lt;/p&gt;
  </code></pre>
  
  <p>I am trying to reconstruct the sentence "to pay charges from one's bank account" that's split into the above HTML code. My problem is that one part of the sentence is not wrapped inside HTML tags. When I try to use:</p>
  
  <pre><code>BeautifulSoup.find_all()
  </code></pre>
  
  <p>I only get the text between the link tags and when I try to use</p>
  
  <pre><code>BeautifulSoup.contents
  </code></pre>
  
  <p>I only get "from one's" but not the text in between the link tags. </p>
  
  <p>Is there a way to go through this code and reconstruct the sentence?</p>
  
  <p><strong>Edit:</strong>
  The above code is just an example, I am trying to scrape a dictionary so the order of the strings and which parts will be inside/outside tags will be arbitrary.</p>