diff --git a/tools/html-to-htmgo/internal/domain/node.go b/tools/html-to-htmgo/internal/domain/node.go
index 29464a0..a90e52e 100644
--- a/tools/html-to-htmgo/internal/domain/node.go
+++ b/tools/html-to-htmgo/internal/domain/node.go
@@ -103,6 +103,17 @@ func (n *CustomNode) String() string {
}
}
+ if str == "h.Script(" {
+ if len(n.Attrs) > 0 {
+ for _, attr := range n.Attrs {
+ if attr.key == "h.Src" {
+ str = str + fmt.Sprintf(`"%s"`, attr.value) + ","
+ n.Attrs = make([]Attr, 0)
+ }
+ }
+ }
+ }
+
booleanAttributes := []string{
"h.AllowFullscreen",
"h.Async",