Replace in angularJS : This is string:

    1<div>2</div><div>3</div><div>4</div>

After replace

    var descriptionVal = desc.replace('<div>', '-').replace('</div>', '-');

only replace first div!

    1-2</div><div>3</div><div>4</div>

how replace all div?