Answer the question
In order to leave comments, you need to log in
Why are html codes not showing up?
I wrote a simple template:
<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
""
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question