12442_v2.patch

Kevin Ulrich Moschallski, 2011-01-21 15:50

Download (785 Bytes)

 
Classes/ViewHelpers/EscapeViewHelper.php (working copy)
47 47
 * Text encoded for URL use (rawurlencode applied).
48 48
 * </output>
49 49
 *
50
 * <code title="JSON">
51
 * <f:escape type="json">{text}</f:escape>
52
 * </code>
53
 * <output>
54
 * Text encoded as json string (json_encode applied).
55
 * </output>
56
 *
50 57
 * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later
51 58
 * @api
52 59
 */
......
84 91
			break;
85 92
			case 'url':
86 93
				return rawurlencode($value);
94
			case 'json':
95
				return json_encode($value);
87 96
			default:
88 97
				return $value;
89 98
			break;