PHP code should follow PSR-1 basic coding standard
This commit is contained in:
parent
da04f84933
commit
18dbcb89d6
|
@ -5,11 +5,6 @@ namespace Trinity\Component\Utils;
|
||||||
class VarFilter
|
class VarFilter
|
||||||
{
|
{
|
||||||
public static function sanitizeText($text)
|
public static function sanitizeText($text)
|
||||||
{
|
|
||||||
return self::sanitize_text($text);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static function sanitize_text($text, $stripTag = true)
|
|
||||||
{
|
{
|
||||||
if ($stripTag) {
|
if ($stripTag) {
|
||||||
$text = preg_replace('`</?[^>]+>`U', '', $text);
|
$text = preg_replace('`</?[^>]+>`U', '', $text);
|
||||||
|
|
Loading…
Reference in a new issue