<% if role.organisations %>
  <div class="organisations-list <%= direction_rtl_class %>" <%= dir_attribute %> <%= lang_attribute %>>
    <span lang="en">Organisations</span>:
    <%= role.organisations.map { |organisation| link_to(organisation['title'], sanitize(organisation['base_path']), class: "govuk-link") }.to_sentence %>
  </div>
<% end %>

<% if role.organisations %>
  <div class="organisations-list <%= direction_rtl_class %>" <%= dir_attribute %> <%= lang_attribute %>>
    <span lang="en">Organisations</span>:
    <%= to_sentence(role.organisations.map { |organisation| link_to(organisation['title'], organisation['base_path'], class: "govuk-link") }) %>
  </div>
<% end %>

Fix raw HTML output for organisations
Fix raw HTML output for organisations

In an attempt to fix a brakeman failure in https://github.com/alphagov/collections/commit/a8fb322737525b9468c89cea84bf53d8e85b1ad4 I did not realised that the organisation would end up rendered as HTML
