|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-06-23 22:54 UTC] johannes@php.net
-Status: Open
+Status: Feedback
[2010-06-23 22:54 UTC] johannes@php.net
[2010-08-09 03:21 UTC] felipe@php.net
-Status: Feedback
+Status: Closed
-Assigned To:
+Assigned To: felipe
[2010-08-09 03:21 UTC] felipe@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 01 13:00:01 2025 UTC |
Description: ------------ When using json_encode for strings with HTML tag, end tag gets HTML encoded but the start tag is left alone Test script: --------------- echo json_encode(array('test' => '<b>Bold</b>')); Expected result: ---------------- {"test":"<b>Bold</b>"} This is valid JSON as per http://www.jslint.com/ Actual result: -------------- {"test":"<b>Bold<\/b>"}