I have an object that I've entered text with HTML snippets that I want to insert into a page using JavaScript. When the string is passed in the object(s) using Apex, the strings are normalized so that the <
character is replaced with <
and the >
character is replaced with >
. I'd like to covert them back and add them using the element.innerHTML property but I'm having issues translating the <
back to a <
.
Anyone have any ideas?
Best Answer
If you cannot make it in Apex, you can try doing it in JavaScript instead: