Skip to content

Commit 6496599

Browse files
committed
Fix HTML leak in job_detail
Use `striptags` to strip all html from `og:description`, which was causing HTML to leak. Resolves #2307
1 parent 4e2bd04 commit 6496599

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/jobs/job_detail.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{% block content_attributes %}with-right-sidebar{% endblock %}
99

1010
{% block og_title %}Job: {{ object.job_title }} at {{ object.company_name }}{% endblock %}
11-
{% block og-descript %}{{ object.description|escape|truncatechars:200 }}{% endblock %}
11+
{% block og-descript %}{{ object.description|striptags|truncatechars:200 }}{% endblock %}
1212

1313
{% block content %}
1414
{% load companies %}

0 commit comments

Comments
 (0)