This commit is contained in:
2019-04-30 23:59:53 +09:00
parent fe8a302466
commit 730bb0f9d1
7 changed files with 62 additions and 64 deletions

View File

@ -1,14 +1,13 @@
package utils
import (
"bytes"
"html"
"strings"
)
// RenderQuoteText renders the given quote text.
func RenderQuoteText(text string) string {
buffer := bytes.Buffer{}
buffer := strings.Builder{}
buffer.WriteString("<p>")
lines := strings.Split(text, "\n")