[Fix #1801] use the new string_to_html method

This commit is contained in:
Mathieu Magnin 2018-05-24 18:01:40 +02:00
parent 152cf03d72
commit cf36d7f1ed
7 changed files with 7 additions and 7 deletions

View file

@ -68,7 +68,7 @@
%h4.text-info
= procedure.libelle
= h sanitize(procedure.description)
= h string_to_html(procedure.description)
.champs.col-xs-6.col-md-3
%h4.text-info

View file

@ -16,7 +16,7 @@
= @facade.procedure.libelle
#description_procedure{ style: 'width: 95%;', class: (@facade.etablissement.nil? ? '' : 'mask') }
= h simple_format(@facade.procedure.description)
= h string_to_html(@facade.procedure.description)
- if @facade.procedure.lien_site_web.present?
.center

View file

@ -9,7 +9,7 @@
%h2.procedure-title
= @dossier.procedure.libelle
.procedure-description
= h simple_format(@dossier.procedure.description)
= h string_to_html(@dossier.procedure.description)
.column
= form_for @dossier.individual, url: update_identite_dossier_path(@dossier), html: { class: "form" } do |f|

View file

@ -8,4 +8,4 @@
= "modifié le #{champ.updated_at.strftime('%d/%m/%Y à %H:%M')}"
- if champ.description.present?
%span.notice= html_formatted_description(champ.description)
%span.notice= string_to_html(champ.description)

View file

@ -1,3 +1,3 @@
%h2.explication-libelle= champ.libelle
.explication
= html_formatted_description(champ.description)
= string_to_html(champ.description)

View file

@ -13,7 +13,7 @@
%h2#titre-procedure.text-info
= @dossier.procedure.libelle
%p.procedure-description
= h sanitize(@dossier.procedure.description)
= h string_to_html(@dossier.procedure.description)
- else
#logo_procedure.flag

View file

@ -6,7 +6,7 @@
= @procedure.libelle
%div
= simple_format(@procedure.description)
= h string_to_html(@procedure.description)
%br
= form_tag(url_for({ controller: :dossiers, action: :create }), class: 'form-inline', method: 'POST') do |f|