phpcomposeryggdrasilbittorrentjs-lesssphinxalt-websymfonydistributedsocial-networkcatalogtorrentmagnetwikitrackerfederatedsqlite
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
767 B
48 lines
767 B
1 year ago
|
<?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;
|
||
|
}
|
||
|
}
|