package main
import (
"fmt"
"strings"
)
// TODO: switch to https://github.com/chasefleming/elem-go
func chatDiv(content string, color string) string {
return fmt.Sprintf(`
%s
`, color, htmlIfy(content))
}
func loader() string {
return ``
}
func disabledElement(id string, disabled bool) string {
if disabled {
return ``
}
return ``
}
func htmlIfy(s string) string {
s = strings.TrimSpace(s)
s = strings.ReplaceAll(s, "\n", "
")
return s
}