Skip to content

Commit

Permalink
Update job_detail.html (#2298)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
joncle committed Feb 14, 2024
1 parent 096ac33 commit 8f37034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/jobs/job_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{% block content_attributes %}with-right-sidebar{% endblock %}

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

{% block content %}
{% load companies %}
Expand Down

0 comments on commit 8f37034

Please sign in to comment.