title: Django template is removing html table, regardless of using safe or autoescape
body: <p>I am trying to pass a variable which has a html table into it as a HTML table in a Django template.</p>
  
  <p>when I pass it though and mark it as | safe or turn auto escape off. all the HTML is inserted but the table is fully removed, does anyone know why and how I can turn it off?</p>
  
  <pre><code>import urllib.request
  from bs4 import BeautifulSoup
  tt_opener = urllib.request.build_opener()
  tt_opener.addheaders = [('User-Agent', 'Mozilla/5.0')]
  tt_service = tt_opener.open('https://managed.mytalktalkbusiness.co.uk/network-status/')
  tt_soup = BeautifulSoup(tt_service, "html.parser")
  tt_data = tt_soup.table
  </code></pre>
  
  <p>template</p>
  
  <pre><code> &lt;div id="TALK-TALK-Service" style="width:50vw; height:50vw; float:left;"&gt;
          {{ TalkTalk |kksafe }}
   &lt;/div&gt;
  </code></pre>
  
  <p>the tt_data variable printed via shell</p>
  
  <pre><code>&lt;table border="0" cellpadding="0" cellspacing="0" class="opaltable" width="100%"&gt;&lt;th nowrap="nowrap"&gt; &lt;/th&gt;&lt;th nowrap="nowrap"&gt;Issue&lt;/th&gt;&lt;th nowrap="nowrap"&gt;Services affected&lt;/th&gt;&lt;th nowrap="nowrap"&gt;Location&lt;/th&gt;&lt;th nowrap="nowrap"&gt;Last update&lt;/th&gt;&lt;tr&gt;&lt;td width="20"&gt;&lt;img src="https://managed.mytalktalkbusiness.co.uk/images/redlight.gif"/&gt;&lt;/td&gt;&lt;td width="350"&gt;&lt;a href="https://managed.mytalktalkbusiness.co.uk/network-status-report.php?reportid=15462"&gt;incident 10574541 - Washington Exchange - no service&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Extranet, Ethernet, EoFTTC &amp;amp; EFM via TalkTalk, DSL via TalkTalk&lt;/td&gt;&lt;td width="100"&gt;n/a&lt;/td&gt;&lt;td nowrap="nowrap" width="150"&gt;11th Oct 2017 12:53&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td width="20"&gt;&lt;img src="https://managed.mytalktalkbusiness.co.uk/images/redlight.gif"/&gt;&lt;/td&gt;&lt;td width="350"&gt;&lt;a href="https://managed.mytalktalkbusiness.co.uk/network-status-report.php?reportid=15448"&gt;Incident 10573277 -  Network – P1 – Some TTB customers are experiencing Post Dial Delay  SIP/VOE&lt;/a&gt;&lt;/td&gt;&lt;td&gt;SIP/VOE&lt;/td&gt;&lt;td width="100"&gt;n/a&lt;/td&gt;&lt;td nowrap="nowrap" width="150"&gt;11th Oct 2017 12:27&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
  </code></pre>
  
  <p>the html displayed on the webpage</p>
  
  <pre><code>&lt;div id="TALK-TALK-Service" style="width:50vw; height:50vw; float:left;"&gt;
          [&amp;nbsp;, Issue, Services affected, Location, Last update, &lt;img src="https://managed.mytalktalkbusiness.co.uk/images/redlight.gif"&gt;&lt;a href="https://managed.mytalktalkbusiness.co.uk/network-status-report.php?reportid=15462"&gt;incident 10574541 - Washington Exchange - no service&lt;/a&gt;Extranet, Ethernet, EoFTTC &amp;amp; EFM via TalkTalk, DSL via TalkTalkn/a11th Oct 2017 12:53, &lt;img src="https://managed.mytalktalkbusiness.co.uk/images/redlight.gif"&gt;, &lt;img src="https://managed.mytalktalkbusiness.co.uk/images/redlight.gif"&gt;, &lt;a href="https://managed.mytalktalkbusiness.co.uk/network-status-report.php?reportid=15462"&gt;incident 10574541 - Washington Exchange - no service&lt;/a&gt;, &lt;a href="https://managed.mytalktalkbusiness.co.uk/network-status-report.php?reportid=15462"&gt;incident 10574541 - Washington Exchange - no service&lt;/a&gt;, Extranet, Ethernet, EoFTTC &amp;amp; EFM via TalkTalk, DSL via TalkTalk, n/a, 11th Oct 2017 12:53, &lt;img src="https://managed.mytalktalkbusiness.co.uk/images/redlight.gif"&gt;&lt;a href="https://managed.mytalktalkbusiness.co.uk/network-status-report.php?reportid=15448"&gt;Incident 10573277 -  Network – P1 – Some TTB customers are experiencing Post Dial Delay  SIP/VOE&lt;/a&gt;SIP/VOEn/a11th Oct 2017 12:27, &lt;img src="https://managed.mytalktalkbusiness.co.uk/images/redlight.gif"&gt;, &lt;img src="https://managed.mytalktalkbusiness.co.uk/images/redlight.gif"&gt;, &lt;a href="https://managed.mytalktalkbusiness.co.uk/network-status-report.php?reportid=15448"&gt;Incident 10573277 -  Network – P1 – Some TTB customers are experiencing Post Dial Delay  SIP/VOE&lt;/a&gt;, &lt;a href="https://managed.mytalktalkbusiness.co.uk/network-status-report.php?reportid=15448"&gt;Incident 10573277 -  Network – P1 – Some TTB customers are experiencing Post Dial Delay  SIP/VOE&lt;/a&gt;, SIP/VOE, n/a, 11th Oct 2017 12:27]
   &lt;/div&gt;
  </code></pre>