summaryrefslogtreecommitdiff
path: root/src/Misc.php
blob: 56ae759bf9da75d30ad60292f2ccc257974ef705 (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");
	}
}