private function Html2Text::strtoupper in Swift Mailer 7
Strtoupper multibyte wrapper function with HTML entities handling.
Parameters
string $str Text to convert:
Return value
string Converted text
1 call to Html2Text::strtoupper()
- Html2Text::toupper in includes/
classes/ Html2Text.inc - Strtoupper function with HTML tags and entities handling.
File
- includes/
classes/ Html2Text.inc, line 580
Class
Code
private function strtoupper($str) {
$str = html_entity_decode($str, ENT_COMPAT, self::ENCODING);
if (function_exists('mb_strtoupper')) {
$str = mb_strtoupper($str, self::ENCODING);
}
else {
$str = strtoupper($str);
}
$str = htmlspecialchars($str, ENT_COMPAT, self::ENCODING);
return $str;
}