<html>
<head><title>Test</title></head>
<body>
{% for string in string_array %}
<div> {{string}}</div>
{% endfor %}
</body>
</html>
from flask import Flask, request, render_template
app = Flask(__name__)
@app.route('/')
def main():
string_array = ['text 1', '""']
return render_template(path, string_array=string_array)
text 1
""
text 1
""