for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace SimpleSAML\XML\Type;
use function preg_replace;
use function trim;
/**
* @package simplesaml/xml-common
*/
class TokenValue extends NormalizedStringValue
{
* Sanitize the content.
*
* @param string $content The unsanitized content
* @return string
protected function sanitizeContent(string $content): string
$content = parent::sanitizeContent($content);
return trim(preg_replace('/\s+/', ' ', $content));
}