Commit 391ea2a1dee9eba15db6d957bbdb6fecf9d24bf8
Exists in
send_email_to_admins
and in
5 other branches
Merge branch 'fix_blog_helper_html_safe' into 'master'
Sets some blog_helper strings as html_safe Prevents html code from scaping in some strings. See merge request !890
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app/helpers/blog_helper.rb
... | ... | @@ -42,11 +42,11 @@ module BlogHelper |
42 | 42 | content << (content_tag 'div', id: "post-#{art.id}", class: css_add do |
43 | 43 | content_tag 'div', class: position + '-inner blog-post-inner' do |
44 | 44 | display_post(art, conf[:format]) + |
45 | - '<br style="clear:both"/>' | |
45 | + '<br style="clear:both"/>'.html_safe | |
46 | 46 | end |
47 | 47 | end).html_safe |
48 | 48 | } |
49 | - safe_join(content, "\n<hr class='sep-posts'/>\n") + (pagination or '').html_safe | |
49 | + safe_join(content, "\n<hr class='sep-posts'/>\n".html_safe) + (pagination or '').html_safe | |
50 | 50 | end |
51 | 51 | |
52 | 52 | def display_post(article, format = 'full') | ... | ... |