func init() { … } // Style returns s with HTML entities escaped and font indicators turned into // HTML font tags. func Style(s string) template.HTML { … } // font returns s with font indicators turned into HTML font tags. func font(s string) string { … } // split is like strings.Fields but also returns the runs of spaces // and treats inline links as distinct words. func split(s string) []string { … }