{% autoescape on %}
<ol>
{% for value in values %}
<li>
<a href="{% url key_detail value.key %}">{{ value.key }}</a> ({{ value.value }})
</li>
{% endfor %}
</ol>
{% endautoescape %}