diff options
author | KushBlazingJudah <59340248+KushBlazingJudah@users.noreply.github.com> | 2021-11-10 15:45:27 -0400 |
---|---|---|
committer | FChannel <> | 2022-06-19 12:53:29 -0700 |
commit | f1f2044c2f2bc24ea2a08c58b4517e1e07f4039c (patch) | |
tree | fbc684b8f4a13145bfaebd71ee6f224cea169eef /util/util.go | |
parent | e15bf8cd1375f24251929ff3e13f883f692ee03a (diff) |
it compiles now
Diffstat (limited to 'util/util.go')
-rw-r--r-- | util/util.go | 7 |
1 files changed, 7 insertions, 0 deletions
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 +} |