use raw for script

main
jolheiser 2025-03-10 13:51:46 -05:00
parent 20a8451427
commit 3b4c4dcc06
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -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)),
}...)
}

View File

@ -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)),
}...)
}