diff --git a/src/root/runcommand-log.tt b/src/root/runcommand-log.tt
index 7d346823..b937a373 100644
--- a/src/root/runcommand-log.tt
+++ b/src/root/runcommand-log.tt
@@ -11,7 +11,7 @@
[% ELSE %]
is
[% END %]
- the output of a RunCommand execution of the command [% runcommandlog.command %]
+ the output of a RunCommand execution of the command [% HTML.escape(runcommandlog.command) %]
on Build [% build.id %].
[% IF tail %]
The full log is also available.