Remove HTML entity in for loop and replace with less than character.