aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/sys/utils.php
blob: 8301e9f58d116e93a7d55604d296106e86eb1a7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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);
}