mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-02 21:31:48 +01:00
Fixup some naming.
This commit is contained in:
@@ -23,15 +23,17 @@ function smarty_modifier_escape($string, $esc_type = 'html')
|
||||
|
||||
case 'hex':
|
||||
// escape every character into hex
|
||||
for ($x=0; $x<strlen($string); $x++) {
|
||||
$return .= '%'.bin2hex($string[$x]);
|
||||
for ($x=0; $x < strlen($string); $x++) {
|
||||
$return .= '%' . bin2hex($string[$x]);
|
||||
}
|
||||
return $return;
|
||||
|
||||
case 'hexentity':
|
||||
for ($x=0; $x<strlen($string); $x++) {
|
||||
$return .= '&#x'.bin2hex($string[$x]).';';
|
||||
for ($x=0; $x < strlen($string); $x++) {
|
||||
$return .= '&#x' . bin2hex($string[$x]) . ';';
|
||||
}
|
||||
return $return;
|
||||
|
||||
default:
|
||||
return $string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user