Changeset 1429
- Timestamp:
- 06/13/06 13:54:30 (2 years ago)
- Files:
-
- trunk/lib/helper/EscapingHelper.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/helper/EscapingHelper.php
r1415 r1429 40 40 function esc_entities($value) 41 41 { 42 return htmlentities($value, ENT_QUOTES, 'UTF-8'); 42 // Numbers and boolean values get turned into strings which can cause problems 43 // with type comparisons (e.g. === or is_int() etc). 44 return is_string($value) ? htmlentities($value, ENT_QUOTES, 'UTF-8') : $value; 43 45 } 44 46