|textebrut

The |textebrut filter processes text to make it usable in a meta tag, for example.

  • New in : SPIP 1.4

Application

This filter is most often used to manage the content of the meta tag <title>.

It is used in /squelettes-dist/sommaire.html so:

<title>[(#NOM_SITE_SPIP|textebrut)][ - (#SLOGAN_SITE_SPIP|textebrut)]</title>

Explanations

In detail, this filter applies the following treatments (in order):

  1. replaces a sequence of spaces with a single space;
  2. replaces tags <p> and<br> and new lines by a single space;
  3. delete all HTML tags (see|supprimer_tags);

See also

Author Mark Published : Updated : 21/07/23

Translations : català, English, Español, français, Nederlands