Rendering table with dynamically created tags in flask template
<p>I am dynamically creating html table tags from mongodb data with <code>json2html</code> in python flask application. If I copy the tags generated to html file it gives perfect output. </p>

<p>But I don't know how to pass those tags to the html template for rendering.</p>

<p>Table tag</p>

<pre><code>&lt;table border="1"&gt;&lt;tr&gt;&lt;th&gt;Hemoglobin&lt;/th&gt;&lt;td&gt;10.4&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th&gt;WBC&lt;/th&gt;&lt;td&gt;35,450&lt;/td&gt;&lt;tr&gt;&lt;th&gt;RBC&lt;/th&gt;&lt;td&gt;3.88&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt; 
</code></pre>

<p>Render call</p>

<pre><code>return render_template('results.html',table=table)
</code></pre>

<p>Template</p>

<pre><code>...
{{table}}
...
</code></pre>

<p>If I could simply substitute my table string into html template as a html code, I think my problem is solved. But I don't know how to do it.</p>