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
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
src="IMG/logo/essai-1.jpg?1614197741"
width="800"
height="600"
alt=""/>