<textarea>
Test string<br>1<span>2</span>
</textarea>
function clean(txt){
return out = txt.replace(/(<([^>]+)>)/ig,'');
}
document.querySelector('textarea').value = clean(document.querySelector('textarea').value)
<form action="https://api.unisender.com/ru/api/subscribe" method="get">
<input type="hidden" name="format" value="json">
<input type="hidden" name="api_key" value="ВАШ_API_КЛЮЧ">
<!-- ... -->
<input type="text" name="fields[email]">
<input type="text" name="fields[name]">
<!-- ... -->
<button type="submit">submit</button>
</form>