Render HTML tags from variable without escaping [duplicate]
问题 This question already has answers here : Passing HTML to template using Flask/Jinja2 (6 answers) Closed 5 years ago . I have some HTML content that I want to pass to the template to render. However, it escapes the tags to use HTML entities ( < ), so they show up as code rather than markup. How can I render the html passed to the template? tags = """<p>some text here</p>""" render_template ('index.html',tags=tags) {{ tags }} '< some text here >' I want a paragraph with the text though. some