From 627b8e416d138112ad20b1299aca21dccebcd11c Mon Sep 17 00:00:00 2001 From: chai Date: Sat, 19 Mar 2022 12:26:19 +0800 Subject: *admin music page --- utils.php | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 utils.php (limited to 'utils.php') diff --git a/utils.php b/utils.php new file mode 100644 index 0000000..8a7824b --- /dev/null +++ b/utils.php @@ -0,0 +1,29 @@ +"; +} + +function println($content) +{ + print_r($content); + echo "
"; +} + +// 替换为html转义字符,否则插入sql会有问题 +function html_escape_string($str) { + $str = str_replace("'", "'", $str); // ' + $str = str_replace('"', """, $str); // " + return $str; +} + +?> + -- cgit v1.1-26-g67d0