{"ScriptPreparationCode":"var toEscape = \u0060ab\u003Cdiv id=\u0022a\u0022 class=\u0027sasa\u0027\u003Easa\u003C/div\u003E\u0060;\r\nvar result = \u0027\u0027;","TestCases":[{"Name":"textContent","Code":"var div = document.createElement(\u0027div\u0027);\r\ndiv.textContent = toEscape;\r\nresult = div.innerHTML;","IsDeferred":false},{"Name":"replace","Code":"var map = {\r\n \u0027\u0026\u0027: \u0027\u0026amp;\u0027,\r\n \u0027\u003C\u0027: \u0027\u0026lt;\u0027,\r\n \u0027\u003E\u0027: \u0027\u0026gt;\u0027,\r\n \u0027\u0022\u0027: \u0027\u0026quot;\u0027,\r\n \u0022\u0027\u0022: \u0027\u0026#039;\u0027\r\n};\r\nresult = toEscape.replace(/[\u0026\u003C\u003E\u0022\u0027]/g, function(m) { return map[m]; });","IsDeferred":false}]}