mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-04-01 01:25:39 +00:00
48 lines
No EOL
767 B
PHP
48 lines
No EOL
767 B
PHP
<?php
|
|
|
|
class Filter
|
|
{
|
|
public static function magnetTitle(mixed $value) : string
|
|
{
|
|
$value = trim(
|
|
strip_tags(
|
|
html_entity_decode($value)
|
|
)
|
|
);
|
|
|
|
return (string) $value;
|
|
}
|
|
|
|
public static function magnetPreview(mixed $value) : string
|
|
{
|
|
$value = trim(
|
|
strip_tags(
|
|
html_entity_decode($value)
|
|
)
|
|
);
|
|
|
|
return (string) $value;
|
|
}
|
|
|
|
public static function magnetDescription(mixed $value) : string
|
|
{
|
|
$value = trim(
|
|
strip_tags(
|
|
html_entity_decode($value)
|
|
)
|
|
);
|
|
|
|
return (string) $value;
|
|
}
|
|
|
|
public static function magnetDn(mixed $value) : string
|
|
{
|
|
$value = trim(
|
|
strip_tags(
|
|
html_entity_decode($value)
|
|
)
|
|
);
|
|
|
|
return (string) $value;
|
|
}
|
|
} |