Skip to content

Commit 8f37034

Browse files
authored
Update job_detail.html (#2298)
Explicity escape the job description for the meta og:description where the description contains html which can throw off the rendering of the page... See https://www.python.org/jobs/7314/ for example.
1 parent 096ac33 commit 8f37034

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/jobs/job_detail.html

Lines changed: 1 addition & 1 deletion
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|truncatechars:200 }}{% endblock %}
11+
{% block og-descript %}{{ object.description|escape|truncatechars:200 }}{% endblock %}
1212

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

0 commit comments

Comments
 (0)