浏览代码

Manually escape description of articles and pages

Talha Mansoor 10 年之前
父节点
当前提交
837338bf38
共有 2 个文件被更改,包括 2 次插入2 次删除
  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 %}