blob: e1ce2f99642a55e8b841ac73b402057b904c275d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<?php
namespace r7r\ste;
class Misc
{
/**
* @param string $text
* @return string
*/
public static function escape_text(string $text): string
{
return addcslashes($text, "\r\n\t\$\0..\x1f\\\"\x7f..\xff");
}
}
|