Forum Moderators: open
Using JavaScript that may work like this:
if(the_args[x].srcMode!= 1)
{
the_args[x].innerText = the_args[x].innerHTML;
the_args[x].srcMode = 1;
the_args[x].style.fontFamily = "monospace";
the_args[x].style.fontSize = "8pt";
}
else
{
the_args[x].innerHTML = the_args[x].innerText;
the_args[x].srcMode = 0;
}
When the html is redered by XSL (client side rednering in IE 5.x), from an XML datasource, how can I make the output inside the target div area look like beautiful formated HTML (using javascript for this) like in an editor and not like:
<tag1>
<tag2>
</tag2>
<tag3>
<tag4>
</tag4>
</tag3>
</tag1>
Thanks.