Verified Commit 0ebb1c6a authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Fix vacancy description showing HTML entities

parent 5a785fa4
......@@ -46,7 +46,8 @@
{{ vacancy.get_company_name }}
<small>{{ vacancy.title }}</small>
</h5>
<p>{{ vacancy.description|striptags|truncatechars:150 }}</p>
{# First do bleach to translate HTML entities, then strip all HTML tags since we're truncating this #}
<p>{{ vacancy.description|bleach|striptags|truncatechars:150 }}</p>
<div class="team-readmore">
{% if vacancy.partner %}
<a href="{% url 'partners:partner' slug=vacancy.partner.slug %}#vacancy-{{ vacancy.id }}">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment