Is it possible to somehow intercept element.innerHTML = msg;
in one particular location and run it:
$("#id").text(msg);
instead of .innerHTML = msg
?
UPDATE:
I've found the similar question: how to intercept innerHTML changes in javascript?
and as I understand the interception innerHTML is not possible.