diff --git a/internal/html/repo_file.go b/internal/html/repo_file.go index 50030a6..6dd3cb1 100644 --- a/internal/html/repo_file.go +++ b/internal/html/repo_file.go @@ -29,6 +29,6 @@ func RepoFileTemplate(rfc RepoFileContext) Node { Button(ID("copy"), Class("absolute top-0 right-0 rounded bg-base hover:bg-surface0")), ), ), - Script(Text(repoFileJS)), + Script(Raw(repoFileJS)), }...) } diff --git a/internal/html/repo_search.go b/internal/html/repo_search.go index 54b912f..87c8e5f 100644 --- a/internal/html/repo_search.go +++ b/internal/html/repo_search.go @@ -73,6 +73,6 @@ func RepoSearchTemplate(sc SearchContext) Node { If(len(dedupeResults) == 0, P(Class("text-text mt-5 text-lg"), Text("No results")), ), - Script(Text(repoSearchJS)), + Script(Raw(repoSearchJS)), }...) }