{"ScriptPreparationCode":null,"TestCases":[{"Name":"Dom Parser","Code":"const html = \u0022\u003Chtml\u003E\u003Cbody\u003E\u003Cdiv\u003Etest\u003C/div\u003E\u003C/body\u003E\u003C/html\u003E\u0022;\r\nconst parser = new DOMParser();\r\nconst virtualDom = parser.parseFromString(html, \u0027text/html\u0027);\r\nconst body = virtualDom.querySelector(\u0027body\u0027);","IsDeferred":false},{"Name":"Regex","Code":"const html = \u0022\u003Chtml\u003E\u003Cbody\u003E\u003Cdiv\u003Etest\u003C/div\u003E\u003C/body\u003E\u003C/html\u003E\u0022;\r\nconst pattern = /\u003Cbody[^\u003E]*\u003E((.|[\\n\\r])*)\u003C\\/body\u003E/im;\r\nconst matches = pattern.exec(html);\r\nconst body = matches[1];","IsDeferred":false},{"Name":"Loop","Code":"const html = \u0022\u003Chtml\u003E\u003Cbody\u003E\u003Cdiv\u003Etest\u003C/div\u003E\u003C/body\u003E\u003C/html\u003E\u0022;\r\nconst start = html.indexOf(\u0027\u003E\u0027) \u002B 1;\r\nconst end = html.lastIndexOf(\u0027\u003C/\u0027);\r\nconst body = html.slice(start, end);","IsDeferred":false}]}