diff options
Diffstat (limited to 'ratatoeskr/sys/utils.php')
-rw-r--r-- | ratatoeskr/sys/utils.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ratatoeskr/sys/utils.php b/ratatoeskr/sys/utils.php new file mode 100644 index 0000000..8301e9f --- /dev/null +++ b/ratatoeskr/sys/utils.php @@ -0,0 +1,25 @@ +<?php +/* + * File: ratatoeskr/sys/utils.php + * + * Various useful helper functions. + * + * License: + * This file is part of Ratatöskr. + * Ratatöskr is licensed unter the MIT / X11 License. + * See "ratatoeskr/licenses/ratatoeskr" for more information. + */ + +use r7r\cms\sys\Esc; + +/** + * Escape HTML (shorter than htmlspecialchars) + * + * @param mixed $text Input text + * @return string HTML + * @deprecated Use {@see Esc::esc()} instead. + */ +function htmlesc($text): string +{ + return Esc::esc($text); +} |