diff options
author | Kevin Chabowski <kevin@kch42.de> | 2014-05-24 14:45:13 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2014-05-24 14:45:13 +0200 |
commit | 3c51baa4167d5a68ff010dc81525b9340c5f1329 (patch) | |
tree | 87dbb507a20a8946f93ea8b26a1a784d5eec62ea /src/Misc.php | |
parent | 9f86139b7604ea782a35e09bf9d0c55154197051 (diff) | |
download | ste-3c51baa4167d5a68ff010dc81525b9340c5f1329.tar.gz ste-3c51baa4167d5a68ff010dc81525b9340c5f1329.tar.bz2 ste-3c51baa4167d5a68ff010dc81525b9340c5f1329.zip |
Moved code into src subfolder and fixed docu
Diffstat (limited to 'src/Misc.php')
-rw-r--r-- | src/Misc.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Misc.php b/src/Misc.php new file mode 100644 index 0000000..56ae759 --- /dev/null +++ b/src/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"); + } +} |