This commit is contained in:
mudler
2024-04-07 20:30:20 +02:00
parent dda993e43b
commit dbfc596333

View File

@@ -2,6 +2,8 @@ package main
import "fmt"
// TODO: switch to https://github.com/chasefleming/elem-go
func chatDiv(content string, color string) string {
return fmt.Sprintf(`<div class="p-2 my-2 rounded bg-%s-600">%s</div>`, color, htmlIfy(content))
}