From 3b84ef696820996e2ddf3cfc22d0119b8dc384e8 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Sun, 13 Apr 2025 10:26:59 +0530 Subject: [PATCH] fix: seo description for job openings --- lms/www/lms.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lms/www/lms.py b/lms/www/lms.py index 01259fe2..5e8b928c 100644 --- a/lms/www/lms.py +++ b/lms/www/lms.py @@ -169,6 +169,11 @@ def get_meta_from_document(app_path): ["job_title", "company_logo", "description"], as_dict=True, ) + + if job_opening.description: + soup = BeautifulSoup(job_opening.description, "html.parser") + job_opening.description = soup.get_text() + return { "title": job_opening.job_title, "image": job_opening.company_logo,