I've wrote a custom view to parse markdown files using regex and I'm passing content as a string literal to the template
context = "Django is a web framework written using <a href='https://www.python.org/'>Python</a>"
return render(request, "blog/post.html", {"context": context})
And in template:
<p>{{ context }}</p>
But the engine renders content as a plain text. How to make links to be links and paragraphs to be paragraphs?
{{ context|safe }}. Alternatively you can usemark_safe()in the view to pass a safe string in the context; docs.djangoproject.com/en/3.2/ref/utils/…