Commit 7a881375 authored by Chris Lamb's avatar Chris Lamb
Browse files

Strip tags, notably headings, when giving job description to avoid styling issues. (Closes: #50)

parent da62a314
......@@ -72,7 +72,7 @@
{% for x in job.tags.all %}
<span class="badge badge-secondary" style="color: white;">{{ x.title }}</span>
{% endfor %}
<span>{{ job.description|markdown|truncatewords_html:10 }}</span>
<p>{{ job.description|markdown|truncatewords_html:10|striptags }}</p>
<span><p>[<a href="{{ job.get_absolute_url }}" style="margin-right: 0;">&hellip;</a>]</p></span>
</p>
<div class="clearfix"></div>
......
Markdown is supported
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