Use _html suffix to avoid using raw when displaying translated strings
This is safer than raw, since any user input is still escaped.
This commit is contained in:
parent
dfedf85b6c
commit
217f616630
10 changed files with 31 additions and 31 deletions
|
@ -5,7 +5,7 @@
|
|||
|
||||
<div class='user-image'></div>
|
||||
|
||||
<h1><%= raw t ".used_by", :name => "<span class='user-name'>OpenStreetMap</span>" %></h1>
|
||||
<h1><%= t ".used_by_html", :name => content_tag(:span, "OpenStreetMap", :class => "user-name") %></h1>
|
||||
</div>
|
||||
|
||||
<div class='text'>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue