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

namespace kch42\ste;

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