title: How can I convert String (with linebreaks) to HTML?
body: <p>When I print the string (in Python) coming from a website I scraped it from, it looks like this:</p>
  <pre><code>&quot;His this 
  
  is 
  
  a sample
  
  String&quot;
  </code></pre>
  <p>It does not show the <code>\n</code> breaks. this is what I see in a Python interpreter.</p>
  <p>And I want to convert it to HTML that will add in the line breaks. I was looking around and didn't see any libraries that do this out of the box.</p>
  <p>I was thinking BeautifulSoup, but wasn't quite sure.</p>