Commit 5f7f9009 authored by Luuk Scholten's avatar Luuk Scholten
Browse files

Merge branch 'fix/423-escaping-vacancy-html' into 'master'

Fix vacancy description showing HTML entities

Closes #423

See merge request !481
parents bd01018a 0ebb1c6a
......@@ -46,7 +46,8 @@
{{ vacancy.get_company_name }}
<small>{{ vacancy.title }}</small>
<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-{{ }}">
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