package rich import ( "html" "github.com/diamondburned/cchat/text" ) func Small(text string) string { return `` + text + "" } func MakeRed(content text.Rich) string { return `` + html.EscapeString(content.Content) + `` } // used for grabbing text without changing state type nullLabel struct { text.Rich } func (n *nullLabel) SetLabel(t text.Rich) { n.Rich = t }