mirror of https://git.jolheiser.com/ugit.git
use raw for script
parent
20a8451427
commit
3b4c4dcc06
|
@ -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)),
|
||||
}...)
|
||||
}
|
||||
|
|
|
@ -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)),
|
||||
}...)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue