add code to replace {value} placehoders in html tag attributes