diff options
author | Kevin Chabowski <kevin@kch42.de> | 2014-05-24 14:55:11 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2014-05-24 14:55:11 +0200 |
commit | d48be01fff31a7a9d611802721aa70532d251c3a (patch) | |
tree | 53ac39214a27855a6521f91ea448e39ffcd7866b /src/ste/Misc.php | |
parent | 3c51baa4167d5a68ff010dc81525b9340c5f1329 (diff) | |
download | ste-d48be01fff31a7a9d611802721aa70532d251c3a.tar.gz ste-d48be01fff31a7a9d611802721aa70532d251c3a.tar.bz2 ste-d48be01fff31a7a9d611802721aa70532d251c3a.zip |
Moved to src/ste for psr-4 compliance1.0.0
Diffstat (limited to 'src/ste/Misc.php')
-rw-r--r-- | src/ste/Misc.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ste/Misc.php b/src/ste/Misc.php new file mode 100644 index 0000000..56ae759 --- /dev/null +++ b/src/ste/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"); + } +} |