|vider_attribut

The vider_attribut{attribut} filter (since SPIP 1.9) is a variant of the inserer_attribut filter. It is used to delete html attributes.
For example, we might want to reset an attribute before assigning it a specific value:

[(#LOGO||vider_attribut{style}|inserer_attribut{style,'width:100px;'})]


This code starts by completely removing the ’style’ attribute for a logo, before re-assigning it the desired value for width, with no explicit definition of any other possible style modifications that may have also have been "erased".

Author Mark Published : Updated : 26/10/12

Translations : català, English, Español, français, Nederlands