summaryrefslogtreecommitdiff
path: root/Misc.php
diff options
context:
space:
mode:
Diffstat (limited to 'Misc.php')
-rw-r--r--Misc.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/Misc.php b/Misc.php
new file mode 100644
index 0000000..56ae759
--- /dev/null
+++ b/Misc.php
@@ -0,0 +1,9 @@
+<?php
+
+namespace kch42\ste;
+
+class Misc {
+ public static function escape_text($text) {
+ return addcslashes($text, "\r\n\t\$\0..\x1f\\\"\x7f..\xff");
+ }
+}