diff --git a/cmd/templ/generatecmd/proxy/proxy.go b/cmd/templ/generatecmd/proxy/proxy.go index 9b942be18..a129888c9 100644 --- a/cmd/templ/generatecmd/proxy/proxy.go +++ b/cmd/templ/generatecmd/proxy/proxy.go @@ -16,6 +16,7 @@ import ( "strings" "time" + "github.com/PuerkitoBio/goquery" "github.com/a-h/templ/cmd/templ/generatecmd/sse" "github.com/andybalholm/brotli" @@ -36,7 +37,16 @@ type Handler struct { } func insertScriptTagIntoBody(body string) (updated string) { - return strings.Replace(body, "