-
- {% include 'twitter.html' %}
-
- {% include 'article_infos.html' %}
- {{ article.content }}
-
- {% if DISQUS_SITENAME %}
-
- {% endif %}
+{% block title %}{{ article.title|striptags }}{% endblock %}
+{% block content %}
+
+
+
+
+ {% include 'twitter.html' %}
+
-
+
+ {% include 'article_infos.html' %}
+ {{ article.content }}
+
+ {% if DISQUS_SITENAME %}
+
+ {% endif %}
+
+
{% endblock %}
diff --git a/pelican/themes/simple/templates/article.html b/pelican/themes/simple/templates/article.html
index d6c96a13..16c34266 100644
--- a/pelican/themes/simple/templates/article.html
+++ b/pelican/themes/simple/templates/article.html
@@ -1,19 +1,23 @@
{% extends "base.html" %}
-{% block content %}
-
-
-
-
- {{ article.content }}
-
+{% block content %}
+
+
+
+
+ {{ article.content }}
+
{% endblock %}
diff --git a/pelican/utils.py b/pelican/utils.py
index 18730e6c..d4e34842 100644
--- a/pelican/utils.py
+++ b/pelican/utils.py
@@ -8,6 +8,7 @@ import logging
from codecs import open as _open
from datetime import datetime
from itertools import groupby
+from jinja2 import Markup
from operator import attrgetter
logger = logging.getLogger(__name__)
@@ -44,6 +45,7 @@ def slugify(value):
Took from django sources.
"""
+ value = Markup(value).striptags()
if type(value) == unicode:
import unicodedata
value = unicodedata.normalize('NFKD', value).encode('ascii', 'ignore')
Comments !
- - -