Login

Tag "shorttag"

Snippet List

Convert XHTML-compatible shorttag to HTML-compatible tag.

This filter converts a XHTML-compatible shorttag `<input ... />` to a HTML4-compatible tag `<input ...>`. Example: `{% for field in form %} <dt>{{ field.label_tag }}</dt> <dd> {{ field.errors }} {{ field|remove_shorttag }} </dd> {% endfor %}` This will produce html4-compatible output, opposed to newform's normal XHTML output.

  • newforms
  • html
  • xhtml
  • html4
  • shorttag
Read More

1 snippet posted so far.