Jul-07-2020, 07:32 AM
OK so the markdown is pretty easy to use. However, I still have issues. It's returning the information in HTML tags, but the HTML is not rendering on my site. Below is my code and a picture of the issue I'm having. Am I missing something?
Thanks!
Thanks!
def wiki(request, title): title = title entry = markdown2.markdown(util.get_entry(title)) return render(request, "encyclopedia/wiki.html", { "entries": entry })
{% extends "encyclopedia/layout.html" %} {% block title %} Encyclopedia {% endblock %} {% block body %} {{ entries }} <form name="frmInfo1" action="/edit" method="post">{% csrf_token %} <textarea name="content">{{ entries }}</textarea> <input type="submit" name="edit" class="submit" value="Edit Entry"> </form> {% endblock %}