diff --git a/internal/html/repo_file.go b/internal/html/repo_file.go
index 6dd3cb13080a68e45577f5b11ef5ae2f27836dd4..50030a6b11fbd821cf9498085386bebc046d22f6 100644
--- a/internal/html/repo_file.go
+++ b/internal/html/repo_file.go
@@ -29,6 +29,6 @@ Raw(rfc.Code),
Button(ID("copy"), Class("absolute top-0 right-0 rounded bg-base hover:bg-surface0")),
),
),
- Script(Raw(repoFileJS)),
+ Script(Text(repoFileJS)),
}...)
}
diff --git a/internal/html/repo_search.go b/internal/html/repo_search.go
index 87c8e5f9ac9fa106ba15e59e89699968ae82cca3..54b912f45b94b7856c0ed92a6679a22ee19e0423 100644
--- a/internal/html/repo_search.go
+++ b/internal/html/repo_search.go
@@ -73,6 +73,6 @@ }),
If(len(dedupeResults) == 0,
P(Class("text-text mt-5 text-lg"), Text("No results")),
),
- Script(Raw(repoSearchJS)),
+ Script(Text(repoSearchJS)),
}...)
}