Метод |
Описание |
|
charWhitelist ( string $input, string $whitelist = self::PRINTABLE_ASCII ) : string |
Only allow characters present in the whitelist string to pass through
the filter. |
|
downloadFileType ( string $mimeType, string $default = 'text/plain', array $badSubstrings = self::DEFAULT_MIME_BLOCK ) : string |
|
|
noHTML ( string $untrusted ) : string |
Don't allow any HTML tags or attributes to be inserted into the DOM. |
|
randomString ( integer $length = 64, string $characters = self::PRINTABLE_ASCII ) : string |
Generate a random string of a given length and character set |
|
stringLength ( string $str ) : integer |
Binary-safe strlen() implementation |
|
subString ( string $str, integer $start, integer | null $length = null ) : string |
Binary-safe substr() implementation |
|