comment
This commit is contained in:
@@ -2,6 +2,8 @@ package main
|
|||||||
|
|
||||||
import "fmt"
|
import "fmt"
|
||||||
|
|
||||||
|
// TODO: switch to https://github.com/chasefleming/elem-go
|
||||||
|
|
||||||
func chatDiv(content string, color string) string {
|
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))
|
return fmt.Sprintf(`<div class="p-2 my-2 rounded bg-%s-600">%s</div>`, color, htmlIfy(content))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user