title: Python: embed function for loop output on html tag
body: <p>I got a Python function that outputs a list like this,</p>
  
  <pre><code>def get_items(argument):    
      for item in items:
          print item
  </code></pre>
  
  <p>On the terminal, when I pass an argument to my function and print, like, "get_items(test)" I get:</p>
  
  <pre><code>item1
  item2
  item3
  </code></pre>
  
  <p>Now, I need to get this on post through storage field (I already got this part working, but I can only print variables with static content, while the content of a list inside a function will return "None"). What I need looks like this,</p>
  
  <pre><code>item1
  item2
  item3
  </code></pre>
  
  <p>In view source, it will look like this,</p>
  
  <pre><code>&lt;p&gt;
  item1&lt;br/&gt;
  item2&lt;br/&gt;
  item3&lt;br/&gt;
  &lt;/p&gt;
  </code></pre>
  
  <p>I'm stomped on how to print this, which in php would be such a simple approach as embedding php within the html content. However, Python throws a 500 error anytime I try anything....
  Please, help! </p>