mirror of
https://codeberg.org/TicklishHoneyBee/CLIte.git
synced 2026-03-11 09:04:37 +00:00
do not htmlEncode data in commands
This commit is contained in:
parent
ba46d0685b
commit
d0ebf7eaaf
2 changed files with 2 additions and 2 deletions
|
|
@ -290,7 +290,7 @@ Options:
|
|||
end = lines.length;
|
||||
tty.clear();
|
||||
for (var i=start; i<end; i++) {
|
||||
tty.draw(stdlib.htmlEncode(lines[i])+'\n');
|
||||
tty.draw(lines[i]+'\n');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -869,7 +869,7 @@ clite.term = {
|
|||
},
|
||||
draw:function(data) {
|
||||
if (typeof data == 'string') {
|
||||
this.data.el.innerHTML += data;
|
||||
this.data.el.innerHTML += clite.lib.htmlEncode(data);
|
||||
return true;
|
||||
}else if (data instanceof HTMLImageElement) {
|
||||
this.data.el.appendChild(data);
|
||||
|
|
|
|||
Loading…
Reference in a new issue