Changeset 8177
- Timestamp:
- 04/01/08 10:56:46 (5 months ago)
- Files:
-
- branches/1.1/lib/helper/TagHelper.php (modified) (1 diff)
- branches/1.1/test/unit/helper/TagHelperTest.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/lib/helper/TagHelper.php
r7899 r8177 72 72 function escape_once($html) 73 73 { 74 return fix_double_escape(htmlspecialchars($html, ENT_ QUOTES, sfConfig::get('sf_charset')));74 return fix_double_escape(htmlspecialchars($html, ENT_COMPAT, sfConfig::get('sf_charset'))); 75 75 } 76 76 branches/1.1/test/unit/helper/TagHelperTest.php
r7899 r8177 12 12 require_once($_test_dir.'/unit/sfContextMock.class.php'); 13 13 14 $t = new lime_test(2 0, new lime_output_color());14 $t = new lime_test(21, new lime_output_color()); 15 15 16 16 $context = sfContext::getInstance(); … … 59 59 $t->is(escape_once(escape_once('This a > text to "escape"')), 'This a > text to "escape"', 'escape_once() does not escape an already escaped string'); 60 60 $t->is(escape_once('This a > text to "escape"'), 'This a > text to "escape"', 'escape_once() does not escape an already escaped string'); 61 $t->is(escape_once("This a > \"text\" to 'escape'"), "This a > "text" to 'escape'", 'escape_once() does not escape simple quotes but escape double quotes'); 61 62 62 63 // fix_double_escape()