InnerHTML with special character is trimming the data.
elem.innerHTML = displayedObjects.name;
here the displayedObjects.name contains a string like Test&string. The above statement is assigning the value only Test,
What could be done here?