This string: <a onclick="doit(''')">...</a>
is received from the server-side and needs to be set as the inner HTML of an element.
When I use Element#setInnerHTML
the string is converted to <a onclick="doit(''')">...</a>
, i.e. unescapes the HTML entity to the character it represents.
How can I preform the inner HTML assignment with no entity conversions?
Clarification: The inner HTML assignment only unescapes entities inside attribute values.