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