Hello, do not worry about this character, by decoding JSON
the system will remove it:
Here is an example of java
:
public static void main(String[] args) {
try {
JSONObject jsonObject = new JSONObject();
jsonObject.put("head","<head></head>");
jsonObject.put("body","<body></body>");
jsonObject.put("script","<script></script>");
JSONObject novo = new JSONObject(jsonObject.toString());
System.out.println(novo.get("head"));
System.out.println(novo.get("body"));
System.out.println(novo.get("script"));
} catch (JSONException e) {
e.printStackTrace();
}
}
See that it will print without the character!
Here is an example in Javascript
, using the result set by java
:
<html>
<head>
<script src="https://code.jquery.com/jquery-1.10.2.js"></script><scripttype="text/javascript">
var obj = jQuery.parseJSON( '{"head":"<head><\/head>","body":"<body><\/body>","script":"<script><\/script>"}' );
alert( obj.head);
alert( obj.body);
alert( obj.script);
</script>
</head>
</html>
Here too the character is removed!