title: how to render django template variable as html?
body: <p>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,</p>
  
  <p>I use the <code>wmd.js</code> to store the formatted input, Consider I have a context variable <code>{{variable}}</code> with string value <code>"&lt;p&gt;something&lt;/p&gt;"</code>. When I render the template,</p>
  
  <pre><code>{{variable}} outputs &lt;p&gt;something&lt;/p&gt;
  
  and {{variable|safe}} also output &lt;p&gt;something&lt;/p&gt;
  </code></pre>
  
  <p>It shows the html tag as text in the page. How to render the HTML tag in the <code>{{variable}}</code> but not showing them as plain text.</p>
  
  <p>the template</p>
  
  <pre><code>    &lt;div id='thread_answer_content' &gt;
          {% for answer in question.answer_set.all %}
              {{answer.answerbody|safe}}
          {% endfor %}
      &lt;/div&gt;
  </code></pre>
  
  <p>the view </p>
  
  <pre><code>def detail(request,question_id):
  q = get_object_or_404(Question,pk=question_id)
  return render_to_response('CODE/detail.html',{'question':q},
          context_instance = RequestContext(request)
      )
  </code></pre>
  
  <p>here is the django admin page of the question , am using sqlite3 by the way
  <img src="https://i.stack.imgur.com/weRqg.png" alt="enter image description here"></p>