From 4d6c537f6b2436f97351f70af5bf1f285386d466 Mon Sep 17 00:00:00 2001 From: Jon Clements Date: Wed, 26 Jul 2023 16:26:21 +0100 Subject: [PATCH] Update job_detail.html 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. --- templates/jobs/job_detail.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/jobs/job_detail.html b/templates/jobs/job_detail.html index 82ddd3f58..be073e551 100644 --- a/templates/jobs/job_detail.html +++ b/templates/jobs/job_detail.html @@ -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 %}