[Piglit] [PATCH 4/4] summary/html: escape html
Erik Faye-Lund
erik.faye-lund at collabora.com
Mon Jan 21 16:00:57 UTC 2019
We currently emit characters like '<' and '>' in some places, let's
avoid that so all browsers will render the result correctly.
In particular, GNOME Web (Epiphany) refuse to render the result without
this.
Signed-off-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
---
templates/index.mako | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/templates/index.mako b/templates/index.mako
index 6338fecb4..ba483fe9d 100644
--- a/templates/index.mako
+++ b/templates/index.mako
@@ -133,7 +133,7 @@
## Add the left most column, the name of the group
<td>
<div class="head" style="margin-left: ${depth * 1.75}em">
- <b>${elem}</b>
+ <b>${elem | h}</b>
</div>
</td>
## add each group's totals
@@ -149,7 +149,7 @@
<td>
<div class="group" style="margin-left: ${depth * 1.75}em">
- ${grouptools.testname(test)}
+ ${grouptools.testname(test) | h}
</div>
</td>
% for res in results.results:
--
2.20.1
More information about the Piglit
mailing list