Article publié
--------------
L'article "|extraire_attribut" a été validé par denisb.
** |extraire_attribut **
par teddyp le vendredi 9 octobre 2009
Le filtre |extraire_attributnom_attribut (depuis spip) permet de
récupérer l'attribut précisé d’un tag html.
Par exemple :
si la balise #LOGO_SITE_SPIP génère le code html ,
alors :
[(#LOGO_SITE_SPIP||extraire_attributsrc)] retournera
local/cache-vignettes/L353xH120/siteon0-1de24.jpg
[(#LOGO_SITE_SPIP||extraire_attributwidth)] retournera 353
[(#LOGO_SITE_SPIP||extraire_attributstyle)] retournera height : 120px ;
width : 353px ;