{{ val|break_long_headers|urlize_quoted_link...">

urlize_quoted_links filter is not registered correctly · Issue #6201 · encode/django-rest-framework (original) (raw)

@dkliban

Steps to reproduce

Put the following in a template:

{% autoescape off %}{% for key, val in response_headers|items %}
<b>{{ key }}:</b> <span class="lit">{{ val|break_long_headers|urlize_quoted_links|my_filter }}</span>{% endfor %}

</span>{{ content|urlize_quoted_links|my_filter }}</pre>{% endautoescape %}
</div>

Expected behavior

my_filter receives unescaped input text

Actual behavior

my_filter receives escaped text

I've put together a PR for this issue. #6191