The |inserer_attribut{attribute, value}
filter (since SPIP 1.8.2) is used to modify or add an HTML attribute to an HTML tag generated by the tag to which it is applied. [1]
For example:[(#LOGO_DOCUMENT||inserer_attribut{alt, #TITRE|attribut_html})]
modifies the "alt" attribute of the "img" HTML tag that is generated by the #LOGO_DOCUMENT tag by assigning it the document’s title as the value.
Il est aussi possible de vider un attribut en lui passant une valeur vide : [(#DESCRIPTIF|inserer_attribut{class, ''})]