json_escape(s)
Class Public methods
A utility method for escaping HTML entities in JSON strings. Specifically, the
&, > and < characters are replaced with their equivalent unicode
escaped form - u0026, u003e, and u003c. The Unicode sequences u2028 and
u2029 are also escaped as they are treated as newline characters in some
JavaScript engines. These sequences have identical meaning as the original
characters inside the context of a JSON string, so assuming the input is a
v