On IE Quirks mode, I want to use following code to display some javascript functions on a html page:
document.write('<pre>' + someFunction + '</pre>');
But if a function's source contains '<', only source code ahead of '<' will be displayed.
for example :
function a(j){
var i = 0;
if(i<j){
alert(j + ' is greater than zero');
}
}
will be displayed as :
function a(j){
var i = 0;
if(i
how to make it display the full source code of a function ?