JSFiddle - React, Tailwind, and code Playground
JavaScript
var string = '<DIV><SPAN style="FONT-FAMILY: Tahoma; FONT-SIZE: 10pt">[If the confirmation is active the subscriber will receive this email after succesfully confirming. If not, this will be the first and only email he will receive.]</SPAN></DIV><p align=center><input class=fieldbox10 type = \'button\' name = \'button\' value = \'Close\' onclick = "window.close()"></p>"';
var temp = $("<div />").append(string);
temp.find('p').remove('p');
alert(temp.html());