We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2948b8a commit 896e4a3Copy full SHA for 896e4a3
app/views/components/_important-metadata.html.erb
@@ -8,12 +8,12 @@
8
<% if items.any? %>
9
<div class="app-c-important-metadata<%= margin_bottom_class %>">
10
<% if title %>
11
- <h2 class="app-c-important-metadata__title"><%= title %></h2>
+ <h2 class="app-c-important-metadata__title"><%= sanitize(title) %></h2>
12
<% end %>
13
<dl data-module="track-click">
14
<% items.each do |title, definition| %>
15
- <dt class="app-c-important-metadata__term"><%= title %>: </dt>
16
- <dd class="app-c-important-metadata__definition"><%= definition %></dd>
+ <dt class="app-c-important-metadata__term"><%= sanitize (title) %>: </dt>
+ <dd class="app-c-important-metadata__definition"><%= sanitize (definition) %></dd>
17
18
</dl>
19
</div>
0 commit comments