Skip to content

Commit

Permalink
Escape < and > with &lt/&gt
Browse files Browse the repository at this point in the history
  • Loading branch information
Dawn Minion committed Nov 21, 2019
1 parent 6435119 commit 7a34c90
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/components/scenarios.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@

<div class="text">
<span class="keyword highlight"><%= step.keyword %></span>
<%= step.name %>
<% if(step.name) { %>
<%= step.name.replace(/</g, '&lt;').replace(/>/g, '&gt;') %>
<% } %>
<% if(suite.displayDuration) { %>
<% if (step.time) { %>
<span class="duration"><%= step.time %></span>
Expand Down

0 comments on commit 7a34c90

Please sign in to comment.