Skip to content
Snippets Groups Projects
Commit bcd61699 authored by alvaro's avatar alvaro
Browse files

replacing globally < and > when showing logs

parent 3a88f853
No related branches found
No related tags found
No related merge requests found
......@@ -110,7 +110,7 @@ class Logging{
date.getHours()+':'+
date.getMinutes()+':'+
date.getSeconds();
pres += '<h4>On '+dateFormatted+'</h4><pre>'+item.message.replace('>', '&gt;').replace('<', '&lt;')+'</pre>';
pres += '<h4>On '+dateFormatted+'</h4><pre>'+item.message.replace(/>/g, '&gt;').replace(/</g, '&lt;')+'</pre>';
});
$('#log').html(pres);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment