Fix commands that have HTML characters in them

This commit is contained in:
Joseph Schorr 2014-01-14 16:01:37 -05:00
parent 7b0cffa69c
commit edbfe22ea8
5 changed files with 53 additions and 28 deletions

View file

@ -220,7 +220,7 @@ ImageHistoryTree.prototype.draw = function(container) {
html += '<span class="comment">' + formatComment(d.image.comment) + '</span>';
}
if (d.image.command && d.image.command.length) {
html += '<span class="command info-line"><i class="fa fa-terminal"></i>' + formatCommand(d.image.command) + '</span>';
html += '<span class="command info-line"><i class="fa fa-terminal"></i>' + formatCommand(d.image) + '</span>';
}
html += '<span class="created info-line"><i class="fa fa-calendar"></i>' + formatTime(d.image.created) + '</span>';
return html;