title: pandas.to_html() for elements in a list show new line characters
body: <p>I have a bunch of pandas dataframes in a list that I need to convert to html tables.  The html code for each individual dataframe looks good, however when I append the html to a list I end up with a bunch of <code>\n</code> characters showing on my webpage.  Can anyone tell me how to get rid of them?</p>
  
  <p><strong>python code</strong>:</p>
  
  <pre><code>dataframe_html = []
  table_dic = {}
  
  for df in dataframes:
    frame = df.to_html(classes="table table-hover")
    dataframe_html.append(frame)  #this is the line where all the \n get added
  
  table_dic.update({'dataframe_html':dataframe_html})
  
  return render(request,'InterfaceApp/FileProcessor_results.html',table_dic)
  </code></pre>
  
  <p><strong>html code</strong>:</p>
  
  <pre><code>&lt;div class="table-responsive"&gt;
      {{ dataframe_html | safe }}
  &lt;/div&gt;
  </code></pre>
  
  <p>Shows up like this:</p>
  
  <p><a href="https://i.stack.imgur.com/n1kw1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/n1kw1.png" alt="enter image description here"></a>'</p>
  
  <p>Can anyone help me out with this??</p>