The below function is used to remove multiple br tag from string. Method 1: $('br').each(function () { if ($(this).next().is('br')) { $(this).next().remove(); } });Method 2:
$('.clsname').each(function(){ $(this).html($(this).html().replace(/(<br>s*){2,2}/g,'<br>')); });