Re: Proposed feature for json_encode()
| From: | Alexey Zakhlestin | Date: | Tue, 04 Dec 2007 09:16:38 +0000 |
| Subject: | Re: Proposed feature for json_encode() | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-33632@lists.php.net to get a copy of this message | ||
I think I understand what the use-case is…
If the browser doesn't know anything about <script> tag, it is
supposed to interpret it's contents as html… In which case, html-tags
which appear in javascript code will actually become active ones
The common practice for dealing with this problem is using "comments"…
http://www.webdevout.net/articles/escaping-style-and-script-data
I still can't figure out any other usecase
--
Alexey Zakhlestin
http://blog.milkfarmsoft.com/