Fixup some naming.

This commit is contained in:
andrey
2002-02-20 22:24:32 +00:00
parent 2c3bd85dee
commit ffe52be500
18 changed files with 142 additions and 146 deletions

View File

@@ -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;
}