title: How to change string to html format?
body: <p>I develop a django project.</p>
  
  <p>I want to show output string on html.</p>
  
  <p>My view is :</p>
  
  <pre><code>def strategy_run(request):
      output = "hello world!\nstring test"
      return render_to_response('strategy_run.html', locals())
  </code></pre>
  
  <p>My strategy_run.html is:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;body&gt;
  {{output}}
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>But I want the html showing like:</p>
  
  <pre><code>hello world!
  string test 
  </code></pre>
  
  <p>Their html might be <code>"hello world!&lt;br&gt;string test"</code>.</p>
  
  <p>So How to change string to html format?</p>
  
  <p>Is there a python or django function for changing the format?</p>
  
  <p>Thank you.</p>