I want to display a json2table entity for a Flask. That's how the table is generated:
import requests
import json
from json2table import convert
from flask import Flask, render_template, abort, url_for, json, jsonify, request
...
html1 = convert(table1, build_direction=build_direction, table_attributes=table_attributes)
return render_template('index.html', table = html1)
I put {{ table }} in templates/index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<form method="POST">
<input name="text">
<input type="submit">
</form>
<div>
{{ table }}
</div>
</body>
</html>
But when I start the app it show me a raw html without formatting
How can I fix it? What should be done?