{"ScriptPreparationCode":null,"TestCases":[{"Name":"DOMPurify with IN_PLACE","Code":"const testString = \u0060\r\n\u003Cb\u003EWelcome to safeland\u003C/b\u003E\u003Cbr\u003E\r\n\u003Ca href=\u0027javascript:alert(1)\u0027\u003EThis is fun\u003C/a\u003E\u003Cbr\u003E\r\n\u003Cimg src=x onerror=console.log(1)\u003E\r\n\u0060\r\nconst result = DOMPurify.sanitize(testString,{IN_PLACE:true})","IsDeferred":false},{"Name":"Sanitize HTML","Code":"const testString = \u0060\r\n\u003Cb\u003EWelcome to safeland\u003C/b\u003E\u003Cbr\u003E\r\n\u003Ca href=\u0027javascript:alert(1)\u0027\u003EThis is fun\u003C/a\u003E\u003Cbr\u003E\r\n\u003Cimg src=x onerror=console.log(1)\u003E\r\n\u0060","IsDeferred":false},{"Name":"DOMPurify without IN_PLACE","Code":"const testString = \u0060\r\n\u003Cb\u003EWelcome to safeland\u003C/b\u003E\u003Cbr\u003E\r\n\u003Ca href=\u0027javascript:alert(1)\u0027\u003EThis is fun\u003C/a\u003E\u003Cbr\u003E\r\n\u003Cimg src=x onerror=console.log(1)\u003E\r\n\u0060\r\nconst result = DOMPurify.sanitize(testString)","IsDeferred":false}]}