ILIAS  release_8 Revision v8.24
SecureString.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
29trait SecureString
30{
31 protected function secure(string $string): string
32 {
33 return htmlspecialchars(
34 strip_tags(
35 preg_replace('#\p{C}+#u', '', $string)
36 ),
37 ENT_QUOTES,
38 'UTF-8',
39 false
40 );
41 }
42}