MCPcopy Create free account
hub / github.com/error311/FileRise / sanitizeTagline

Method sanitizeTagline

src/FileRise/Domain/AdminModel.php:780–792  ·  view source on GitHub ↗
($value)

Source from the content-addressed store, hash-verified

778 }
779
780 private static function sanitizeTagline($value): string
781 {
782 $text = trim((string)$value);
783 if ($text === '') {
784 return '';
785 }
786 $text = preg_replace('/[\x00-\x1F\x7F]/', ' ', $text);
787 $text = preg_replace('/\s+/', ' ', (string)$text);
788 if (strlen($text) > 200) {
789 $text = substr($text, 0, 200);
790 }
791 return trim($text);
792 }
793
794 private static function sanitizeFooterHtml($value): string
795 {

Callers 3

buildPublicSubsetMethod · 0.95
updateConfigMethod · 0.95
getConfigMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected