I have a string of data..

This is a template body for  &lt&ltApproved&gt&gt &lt&ltSubmitted&gt&gt

I want to replace "&lt" with "<<" and "&gt" with ">>"

To replace "&lt" I wrote this code..

 var body = $('#txtHSliderl').val().replace("&lt", "<<");

But it only seems to replace the first occurrence..

This is a template body for  <<&ltApproved&gt&gt &lt&ltSubmitted&gt&gt

How do I replace all occurrences?

Edit
Report