diff --git a/pr_agent/algo/utils.py b/pr_agent/algo/utils.py
index 513f38534..b7b5eb2ce 100644
--- a/pr_agent/algo/utils.py
+++ b/pr_agent/algo/utils.py
@@ -1,5 +1,6 @@
from __future__ import annotations
+import html
import copy
import difflib
import json
@@ -770,6 +771,7 @@ def replace_code_tags(text):
"""
Replace odd instances of ` with and even instances of ` with
"""
+ text = html.escape(text)
parts = text.split('`')
for i in range(1, len(parts), 2):
parts[i] = '' + parts[i] + '
'