From f1f2044c2f2bc24ea2a08c58b4517e1e07f4039c Mon Sep 17 00:00:00 2001 From: KushBlazingJudah <59340248+KushBlazingJudah@users.noreply.github.com> Date: Wed, 10 Nov 2021 15:45:27 -0400 Subject: it compiles now --- util/util.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'util') diff --git a/util/util.go b/util/util.go index 7da4671..a56e871 100644 --- a/util/util.go +++ b/util/util.go @@ -238,3 +238,10 @@ func HashBytes(media []byte) string { h.Write(media) return hex.EncodeToString(h.Sum(nil)) } + +func EscapeString(text string) string { + // TODO: not enough + + text = strings.Replace(text, "<", "<", -1) + return text +} -- cgit v1.2.3