[Fix #592] Convert html_safe to sanitize

This commit is contained in:
Simon Lehericey 2017-07-12 18:17:53 +02:00
parent da7af28f9f
commit 4ae9d8ef0d
12 changed files with 17 additions and 15 deletions

View file

@ -60,4 +60,4 @@
- unless champ.description.empty?
%div{ id: "description_champs_#{champ.id}", class: ('help-block' unless champ.type_champ == 'engagement') }
= champ.description_with_links
= sanitize(champ.description_with_links, attributes: %w(href target))