Kaynağa Gözat

Manually escape description of articles and pages

Talha Mansoor 10 yıl önce
ebeveyn
işleme
837338bf38
2 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 1 1
      templates/article.html
  2. 1 1
      templates/page.html

+ 1 - 1
templates/article.html

@@ -6,7 +6,7 @@
 
 {% block head_description %}
 {% if article.summary %}
-{{ article.summary|striptags }}
+{{ article.summary|striptags|e }}
 {% endif %}
 {% endblock head_description %}
 

+ 1 - 1
templates/page.html

@@ -6,7 +6,7 @@
 
 {% block head_description %}
 {% if page.summary %}
-{{ page.summary|striptags }}
+{{ page.summary|striptags|e }}
 {% endif %}
 {% endblock head_description %}