Use raw instead of html_safe

They do the exact same thing; however `html_safe` might confuse
developers into thinking it will make the HTML safe. Using `raw` makes
it clear that we're inserting the text without escaping it.
This commit is contained in:
Javi Martín
2019-10-06 16:22:01 +02:00
parent 9eee79f218
commit 89402bdbf6
7 changed files with 12 additions and 12 deletions

View File

@@ -11,10 +11,10 @@
type: "image/png" %>
<%= content_for :social_media_meta_tags %>
<%= setting["html.per_page_code_head"].try(:html_safe) %>
<%= raw setting["html.per_page_code_head"] %>
</head>
<body class="<%= yield (:body_class) %>">
<%= setting["html.per_page_code_body"].try(:html_safe) %>
<%= raw setting["html.per_page_code_body"] %>
<h1 class="show-for-sr"><%= setting["org_name"] %></h1>