PUBLIE : |attribut_html

Article publié
--------------

L'article "|attribut_html" a été validé par denisb.

** |attribut_html **
par teddyp le mercredi 7 octobre 2009

Le filtre |attribut_html appliqué à une balise de texte traduira le
rendu html de celle-ci dans un format utilisable sans dommage dans un
attribut html (alt="...", title="...", value="...").

Par exemple, à partir d'une balise #DESCRIPTIF qui retourne normalement
le source html suivant : 2 est "supérieur" à 1 & c'est noté : 2 > 1,
pour renseigner l'attribut alt d'une image on utilisera : qui retournera le
source html :

(Dans les versions de SPIP antérieures à spip, il fallait ajouter le
filtre |supprimer_tags.)

-> http://www.spip.net/fr_article4282.html