From 633ed81a07fee14ffd4def3e965096e2fc50d0e1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jes=C3=BAs=20Pelay?= <pelayjesus@gmail.com>
Date: Tue, 10 Dec 2024 17:37:14 -0400
Subject: [PATCH] use text instead of contents

---
 website/for_teachers.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/website/for_teachers.py b/website/for_teachers.py
index 4a73ab91fee..d8d1a301457 100644
--- a/website/for_teachers.py
+++ b/website/for_teachers.py
@@ -428,7 +428,7 @@ def is_program_modified(self, program, full_adventures, teacher_adventures):
                 content = adventure['content']
                 soup = BeautifulSoup(content, features="html.parser")
                 for pre in soup.find_all('pre'):
-                    adventure_snippets.append(str(pre.contents[0]))
+                    adventure_snippets.append(pre.text)
 
         student_code = program['code'].strip()
         # now we have to calculate the differences between the student code and the code snippets