SPIP
Article submitted
The article « |supprimer_class
(https://www.spip.net/ecrire/?exec=article&id_article=6672) » is submitted
for publication. on Friday 20 August 2021.
|supprimer_class
Friday 20 August 2021 , by jack
Table of contents
- See also
Available since SPIP 4.0, the `
|supprimer_class
` filter removes a class or multiple classes from an HTML tag.
Example
- #LOGO_RUBRIQUE
Generates the following HTML:
<
img
(http://december.com/html/4/element/img.html)
src
=
"IMG/logo/essai-1.jpg?1614197741"
class
=
"spip_logo"
width
=
"800"
height
=
"600"
alt
=
""
/
>
If we apply the `
|supprimer_class
` filter
- [ ( #LOGO_RUBRIQUE |supprimer_class {spip_logo} ) ]
The result is:
<
img
(http://december.com/html/4/element/img.html)
src
=
"IMG/logo/essai-1.jpg?1614197741"
width
=
"800"
height
=
"600"
alt
=
""
/
>
See also|Back to the table of contents
- |ajouter_class
(https://www.spip.net/ecrire/?exec=article&id_article=6623) - |commuter_class
(https://www.spip.net/ecrire/?exec=article&id_article=6625)
- |inserer_attribut
(https://www.spip.net/ecrire/?exec=article&id_article=4294) - |vider_attribut
(https://www.spip.net/ecrire/?exec=article&id_article=4142) - |extraire_attribut
(https://www.spip.net/ecrire/?exec=article&id_article=4288)
— Sent by SPIP (https://www.spip.net/)