Correctly render budget description with html & links
This commit is contained in:
@@ -7,7 +7,7 @@ module TextWithLinksHelper
|
|||||||
end
|
end
|
||||||
|
|
||||||
def safe_html_with_links(html)
|
def safe_html_with_links(html)
|
||||||
return html unless html.html_safe?
|
return html.html_safe unless html.html_safe?
|
||||||
Rinku.auto_link(html, :all, 'target="_blank" rel="nofollow"').html_safe
|
Rinku.auto_link(html, :all, 'target="_blank" rel="nofollow"').html_safe
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
<h1><%= @budget.name %></h1>
|
<h1><%= @budget.name %></h1>
|
||||||
|
|
||||||
<%= safe_html_with_links @budget.description %>
|
<%= safe_html_with_links(@budget.description) %>
|
||||||
<%= link_to t("budgets.index.section_header.help"), "#section_help" %>
|
<%= link_to t("budgets.index.section_header.help"), "#section_help" %>
|
||||||
</div>
|
</div>
|
||||||
<div class="small-12 medium-3 column info padding" data-equalizer-watch>
|
<div class="small-12 medium-3 column info padding" data-equalizer-watch>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
<h1><%= @budget.name %></h1>
|
<h1><%= @budget.name %></h1>
|
||||||
|
|
||||||
<%= safe_html_with_links @budget.description %>
|
<%= safe_html_with_links(@budget.description) %>
|
||||||
</div>
|
</div>
|
||||||
<div class="small-12 medium-3 column info padding" data-equalizer-watch>
|
<div class="small-12 medium-3 column info padding" data-equalizer-watch>
|
||||||
<p>
|
<p>
|
||||||
|
|||||||
Reference in New Issue
Block a user