diff --git a/backend/app/main.py b/backend/app/main.py
index b18ba3c..01b8e1b 100644
--- a/backend/app/main.py
+++ b/backend/app/main.py
@@ -1784,7 +1784,9 @@ def export_inspection_to_pdf(
]
if answer.comment:
- question_data.append([Paragraph(f"Comentarios: {answer.comment}", styles['Normal']), ''])
+ import html
+ safe_comment = html.escape(answer.comment)
+ question_data.append([Paragraph(f"Comentarios: {safe_comment}", styles['Normal']), ''])
question_table = Table(question_data, colWidths=[4*inch, 2*inch])
question_table.setStyle(TableStyle([