Wednesday, February 3, 2016

remove all angle brackets from a string in JavaScript and not just the first ones as is that problem with .replace

$('.emailTemplateHeader').each(function () {
   var value = $(this).val();
   value = value.split("<").join("");
   value = value.split(">").join("");
   $(this).val(value);
});

No comments:

Post a Comment