Authorising the name and id attributes in events' and orgas' description

This commit is contained in:
echarp 2020-02-13 21:12:32 +01:00
parent 6bda709b4f
commit 3888485356
4 changed files with 4 additions and 4 deletions

View File

@ -39,7 +39,7 @@
.description .description
= description sanitize @event.description, = description sanitize @event.description,
tags: %w[p h1 h2 h3 h4 br table tr th td ul ol li a strong b em i img sub sup span], tags: %w[p h1 h2 h3 h4 br table tr th td ul ol li a strong b em i img sub sup span],
attributes: %w[href src width height style title] attributes: %w[href src width height style title name id]
%h3 %h3
%em.fa.fa-info-circle %em.fa.fa-info-circle

View File

@ -2,7 +2,7 @@
\ \
!= sanitize @note.contents.html_safe, != sanitize @note.contents.html_safe,
tags: %w[p br table tr td ul ol li a strong b em i img], tags: %w[p br table tr td ul ol li a strong b em i img],
attributes: %w[href src width height] attributes: %w[href src width height name id]
\ \
!= t '.edit_link' != t '.edit_link'
\ \

View File

@ -29,7 +29,7 @@
.description .description
= description sanitize @orga.description, = description sanitize @orga.description,
tags: %w[p h1 h2 h3 h4 br table tr th td ul ol li a strong b em i img sub sup span], tags: %w[p h1 h2 h3 h4 br table tr th td ul ol li a strong b em i img sub sup span],
attributes: %w[href src width height style title] attributes: %w[href src width height style title name id]
%h3 %h3
%em.fa.fa-info-circle %em.fa.fa-info-circle

View File

@ -25,7 +25,7 @@
.description .description
= sanitize event.description, = sanitize event.description,
tags: %w[p h1 h2 h3 h4 br table tr th td ul ol li a strong b em i img sub sup span], tags: %w[p h1 h2 h3 h4 br table tr th td ul ol li a strong b em i img sub sup span],
attributes: %w[href src width height style title] attributes: %w[href src width height style title name id]
- if @events_past.any? - if @events_past.any?
%h2 %h2