summaryrefslogtreecommitdiff
path: root/src/ste/Misc.php
blob: 39ad30c68e70746c41513ff9289b544ee1dfa65e (plain)
1
2
3
4
5
6
7
8
9
<?php

namespace kch42\ste;

class Misc {
    public static function escape_text($text) {
        return addcslashes($text, "\r\n\t\$\0..\x1f\\\"\x7f..\xff");
    }
}