aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorKushBlazingJudah <59340248+KushBlazingJudah@users.noreply.github.com>2021-11-10 15:45:27 -0400
committerFChannel <>2022-06-19 12:53:29 -0700
commitf1f2044c2f2bc24ea2a08c58b4517e1e07f4039c (patch)
treefbc684b8f4a13145bfaebd71ee6f224cea169eef /util
parente15bf8cd1375f24251929ff3e13f883f692ee03a (diff)
it compiles now
Diffstat (limited to 'util')
-rw-r--r--util/util.go7
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, "<", "&lt;", -1)
+ return text
+}