title: How to style WTForm field through a widget?
body: <p>I want to style a wtform field through a <a href="http://wtforms.simplecodes.com/docs/0.6/widgets.html#custom-widgets" rel="nofollow">custom widget</a> but the rendering keeps returning raw html code (with ampersands). Why?</p>
  
  <p>this is my widget:</p>
  
  <pre><code>def my_widget(field, **kwargs):
      field_id = kwargs.pop('id', field.id)
      html = [u'&lt;input class="my_class" %s value="" type="text"&gt;' % html_params(id=field_id, name=field_id)]
      return u''.join(html)
  </code></pre>