how to render django template variable as html?
问题 What I want is like stack overflow. User can HTML format their text input, and the page should be rendered exactly in the same way, I use the wmd.js to store the formatted input, Consider I have a context variable {{variable}} with string value "<p>something</p>" . When I render the template, {{variable}} outputs <p>something</p> and {{variable|safe}} also output <p>something</p> It shows the html tag as text in the page. How to render the HTML tag in the {{variable}} but not showing them as