Commit 2276f13845bae26059442e6bdbe2f165908c4770

Authored by Leandro Santos
1 parent 841f32a9
Exists in fix_sign_up_form

CommunityTrack: avoid html parse in body and lead tracks and steps

plugins/community_track/views/blocks/_track.html.erb
... ... @@ -5,7 +5,7 @@
5 5 <div class="lead">
6 6 <h3><%= link_to track.name, track.url %></h3>
7 7 <div class="content">
8   - <%= track.lead %>
  8 + <%= track.lead.html_safe %>
9 9 </div>
10 10 </div>
11 11 <div class="steps">
... ...
plugins/community_track/views/content_viewer/_step_item.html.erb
... ... @@ -10,7 +10,7 @@
10 10 <%= status_description(step_item) %>
11 11 </div>
12 12 <div class="name"><span class="tool_icon button with-text icon-new icon-new<%= step_item.tool_class.icon_name if step_item.tool_class %>"></span> <%= step_item.name %></div>
13   - <div class="lead"><%= step_item.body %></div>
  13 + <div class="lead"><%= step_item.body.html_safe %></div>
14 14 <div class="tools">
15 15 <% if step_item.tool %>
16 16 <%= _('Tool: ') %>
... ...
plugins/community_track/views/content_viewer/step.html.erb
... ... @@ -7,7 +7,7 @@
7 7 </ul>
8 8 </div>
9 9 <div>
10   - <%= step.body %>
  10 + <%= step.body.html_safe %>
11 11 </div>
12 12 <% if step.allow_create?(user) && !step.tool && step.tool_class %>
13 13 <h3><%= _("Tool") %></h3>
... ...
plugins/community_track/views/content_viewer/track.html.erb
... ... @@ -3,7 +3,7 @@
3 3 <%= form_tag({:controller => 'community_track_plugin_myprofile', :action => 'save_order', :track => track}) do %>
4 4 <div id="track">
5 5 <div>
6   - <%= track.body %>
  6 + <%= track.body.html_safe %>
7 7 </div>
8 8  
9 9 <h3><%= _("Steps") %></h3>
... ...