|supprimer_class

  • New in : SPIP 4.0

Available since SPIP 4.0, the |supprimer_class filter removes a class or multiple classes from an HTML tag.

Example

  1. #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

  1. [(#LOGO_RUBRIQUE|supprimer_class{spip_logo})]

The result is:

<img
	src="IMG/logo/essai-1.jpg?1614197741"
	width="800"
	height="600"
	alt=""/>

See also

Author jack Published :

Translations : English, français