summaryrefslogtreecommitdiff
path: root/src/ste/Misc.php
blob: 330b3d2ac21290116a31178e0e52bb4662d8e479 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

namespace kch42\ste;

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