for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Hyde\Support\Helpers;
use function htmlspecialchars;
/**
* @internal This class is currently experimental and may change without notice.
*/
class XML
{
public static function escape(string $string): string
return htmlspecialchars($string, ENT_XML1 | ENT_COMPAT, 'UTF-8');
}