From 2984a715b830410b6d6ce2a8aaa1fc8a2388ee99 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Sun, 5 Jan 2025 15:16:26 -0800 Subject: add ntfy integration --- utils/quote_str.go | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 utils/quote_str.go (limited to 'utils/quote_str.go') diff --git a/utils/quote_str.go b/utils/quote_str.go new file mode 100644 index 0000000..acff5a2 --- /dev/null +++ b/utils/quote_str.go @@ -0,0 +1,7 @@ +package utils + +import "strings" + +func Quote(s string) string { + return strings.Replace(s, `"`, `\"`, -1) +} -- cgit v1.2.3-70-g09d2