Escape < and > characters from the cli.

10.3.x-maintenance
Dominic Clifton 2015-06-29 03:33:17 +01:00
parent 58bcbe876c
commit 4203413b74
1 changed files with 7 additions and 0 deletions

View File

@ -141,6 +141,13 @@ TABS.cli.read = function (readInfo) {
text += "<br />";
}
break;
case 60:
text += '&lt';
break;
case 62:
text += '&gt';
break;
default:
text += String.fromCharCode(data[i]);
}