title: Replace <a> </a> with href in BeautifulSoup
body: <pre><code>content='&lt;p&gt;Hello, the web site is &lt;a href="https://www.google.com"&gt;Google&lt;/a&gt;&lt;/p&gt;. &lt;p&gt;The search engine is &lt;a href="https://www.baidu.com"&gt;Baidu&lt;/a&gt;&lt;/p&gt;.'
  soup = BeautifulSoup(content, 'html.parser')
  </code></pre>
  
  <p>Now I want to replace the whole <code>&lt;a&gt; &lt;/a&gt;</code> with the url address in href. So I want to get the expected result:</p>
  
  <pre><code>Hello, the web site is https://www.google.com. The search engine is https://www.baidu.com.
  </code></pre>
  
  <p>Anyone can provide a solution?</p>