Procházet zdrojové kódy

Add striptags filter to description meta header

Thanks @PontusHorn
Daniel Rudolf před 10 roky
rodič
revize
a7fd853f8f
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      themes/default/index.twig

+ 1 - 1
themes/default/index.twig

@@ -5,7 +5,7 @@
 
     <title>{% if meta.title %}{{ meta.title }} | {% endif %}{{ site_title }}</title>
     {% if meta.description %}
-        <meta name="description" content="{{ meta.description }}">
+        <meta name="description" content="{{ meta.description|striptags }}">
     {% endif %}{% if meta.robots %}
         <meta name="robots" content="{{ meta.robots }}">
     {% endif %}