try
--------------------------------------------
function correctUrl(cont)
{
cont = cont.replace(/</g,"&lt;");
cont = cont.replace(/>/g,"&gt;");
}