summaryrefslogtreecommitdiff
path: root/src/web/helpers/sanitize.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/web/helpers/sanitize.php8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/web/helpers/sanitize.php b/src/web/helpers/sanitize.php
deleted file mode 100644
index 495c249..0000000
--- a/src/web/helpers/sanitize.php
+++ /dev/null
@@ -1,8 +0,0 @@
-<?php /* Copyright (c) 2024 Freya Murphy */
-
-function esc(string $data): string {
- $data = str_replace('&', '&amp;', $data);
- $data = str_replace('<', '&lt;', $data);
- $data = str_replace('>', '&gt;', $data);
- return $data;
-}