I have an HTML element that have value attribute. The value should be Comfort & Protection but the name that comes from the JSON get result is Comfort &
&
One option would be to replace the & string with & as below:
var text = name.replace(/&/g, '&')