this is the string:
Hi <input type="text" placeholder="Person Full Name">,<span><br></span><span><br></span><span><span>
This is a sample email template for </span></span><input type="text" placeholder="Deal Title">
associated with <input type="text" placeholder="Deal Owner"><span><br></span><span><br></span><span><span><br></span></span><span><span><span>
Regards,</span></span></span><span><span><span><span><br></span></span></span></span><input type="text" placeholder="Organization Name"><span><br></span><span>
dlkgmffkgmkm </span><input type="text" placeholder="">
dslkfmlgdmglkfnkl <input type="text" placeholder=""><br>
I am also using an Editor in my textarea.
$(".btn-removehtml").click(function() {
html = $('.email-textarea').Editor("getText");
replaceInput = html.find('input').replaceWith(function() {
return this.innerHTML;
}).end().html();
});