func textProcessedBySmartypants(text string) string { buffer := new(bytes.Buffer) smartypants.New(buffer, 0).Write([]byte(text)) ret := buffer.String() // At this point `ret` contains HTML special entities like < // so we gotta get rid of them. return html.UnescapeString(ret) }