diff --git a/templates/notfound.tmpl b/templates/notfound.tmpl
--- a/templates/notfound.tmpl
+++ b/templates/notfound.tmpl
@@ -5,7 +5,7 @@
Mercurial Repositories
-The specified repository "#repo#" is unknown, sorry.
+The specified repository "#repo|escape#" is unknown, sorry.
Please go back to the main repository list page.
diff --git a/templates/tags.tmpl b/templates/tags.tmpl
--- a/templates/tags.tmpl
+++ b/templates/tags.tmpl
@@ -1,5 +1,5 @@
#header#
-#repo#: tags
+#repo|escape#: tags