Commit 8d6d8545 authored by Bram in 't Zandt's avatar Bram in 't Zandt
Browse files

HTML entities on the partner page are now removed using bleach

parent 6798ab64
{% extends 'base.html' %}
{% load i18n %}
{% load i18n bleach_tags %}
{% block title %}{% trans "Partners" %} — {% trans "Career" %} — {{ block.super }}{% endblock %}
{% block opengraph_title %}{% trans "Partners" %} — {% trans "Career" %} — {{ block.super }}{% endblock %}
......@@ -24,7 +24,7 @@
</div>
<h4>{{ main_partner.name }}</h4>
<p>{{ main_partner.company_profile|striptags|truncatechars:425 }}</p>
<p>{{ main_partner.company_profile|striptags|bleach|truncatechars:425 }}</p>
<p>
<a href="{% url "partners:partner" main_partner.slug %}" class="link-style3">
......@@ -53,7 +53,7 @@
<a href="{% url 'partners:partner' partner.slug %}">
<div class="post-overlay-meta">
<h2>{{ partner.name }}</h2>
<p>{{ partner.company_profile|striptags|truncatechars:180 }}</p>
<p>{{ partner.company_profile|striptags|bleach|truncatechars:180 }}</p>
<span class="partner-logo-overlay-readmore">{% trans "Learn more" %} &raquo; </span>
</div>
<div class="klikbaar"></div>
......
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