diff --git a/pelican/themes/notmyidea/templates/author.html b/pelican/themes/notmyidea/templates/author.html
index 0b372902..536ac50d 100644
--- a/pelican/themes/notmyidea/templates/author.html
+++ b/pelican/themes/notmyidea/templates/author.html
@@ -1,2 +1,2 @@
{% extends "index.html" %}
-{% block title %}{{ SITENAME }} - {{ author }}{% endblock %}
+{% block title %}{{ SITENAME|striptags }} - {{ author }}{% endblock %}
diff --git a/pelican/themes/notmyidea/templates/authors.html b/pelican/themes/notmyidea/templates/authors.html
index e61a332f..b9f87e22 100644
--- a/pelican/themes/notmyidea/templates/authors.html
+++ b/pelican/themes/notmyidea/templates/authors.html
@@ -1,6 +1,6 @@
{% extends "base.html" %}
-{% block title %}{{ SITENAME }} - Authors{% endblock %}
+{% block title %}{{ SITENAME|striptags }} - Authors{% endblock %}
{% block content %}
diff --git a/pelican/themes/notmyidea/templates/base.html b/pelican/themes/notmyidea/templates/base.html
index 2b302899..8483f268 100644
--- a/pelican/themes/notmyidea/templates/base.html
+++ b/pelican/themes/notmyidea/templates/base.html
@@ -5,13 +5,13 @@
-
{% block title %}{{ SITENAME }}{%endblock%}
+ {% block title %}{{ SITENAME|striptags }}{%endblock%}
{% if FEED_ALL_ATOM %}
-
+
{% endif %}
{% if FEED_ALL_RSS %}
-
+
{% endif %}
{% block extra_head %}{% endblock extra_head %}
{% endblock head %}
diff --git a/pelican/themes/notmyidea/templates/categories.html b/pelican/themes/notmyidea/templates/categories.html
index 07f6290a..7c5951c7 100644
--- a/pelican/themes/notmyidea/templates/categories.html
+++ b/pelican/themes/notmyidea/templates/categories.html
@@ -1,6 +1,6 @@
{% extends "base.html" %}
-{% block title %}{{ SITENAME }} - Categories{% endblock %}
+{% block title %}{{ SITENAME|striptags }} - Categories{% endblock %}
{% block content %}
diff --git a/pelican/themes/notmyidea/templates/category.html b/pelican/themes/notmyidea/templates/category.html
index 56f8e93e..ff14ed76 100644
--- a/pelican/themes/notmyidea/templates/category.html
+++ b/pelican/themes/notmyidea/templates/category.html
@@ -1,2 +1,2 @@
{% extends "index.html" %}
-{% block title %}{{ SITENAME }} - {{ category }}{% endblock %}
+{% block title %}{{ SITENAME|striptags }} - {{ category }}{% endblock %}
diff --git a/pelican/themes/notmyidea/templates/tag.html b/pelican/themes/notmyidea/templates/tag.html
index 68cdcba6..1e32857b 100644
--- a/pelican/themes/notmyidea/templates/tag.html
+++ b/pelican/themes/notmyidea/templates/tag.html
@@ -1,2 +1,2 @@
{% extends "index.html" %}
-{% block title %}{{ SITENAME }} - {{ tag }}{% endblock %}
+{% block title %}{{ SITENAME|striptags }} - {{ tag }}{% endblock %}
diff --git a/pelican/themes/notmyidea/templates/tags.html b/pelican/themes/notmyidea/templates/tags.html
index fb099557..a1729321 100644
--- a/pelican/themes/notmyidea/templates/tags.html
+++ b/pelican/themes/notmyidea/templates/tags.html
@@ -1,6 +1,6 @@
{% extends "base.html" %}
-{% block title %}{{ SITENAME }} - Tags{% endblock %}
+{% block title %}{{ SITENAME|striptags }} - Tags{% endblock %}
{% block content %}
diff --git a/pelican/themes/simple/templates/archives.html b/pelican/themes/simple/templates/archives.html
index cd129507..b7754c45 100644
--- a/pelican/themes/simple/templates/archives.html
+++ b/pelican/themes/simple/templates/archives.html
@@ -1,6 +1,6 @@
{% extends "base.html" %}
-{% block title %}{{ SITENAME }} - Archives{% endblock %}
+{% block title %}{{ SITENAME|striptags }} - Archives{% endblock %}
{% block content %}
Archives for {{ SITENAME }}
diff --git a/pelican/themes/simple/templates/article.html b/pelican/themes/simple/templates/article.html
index 6dd0d967..a17f2759 100644
--- a/pelican/themes/simple/templates/article.html
+++ b/pelican/themes/simple/templates/article.html
@@ -1,7 +1,7 @@
{% extends "base.html" %}
{% block html_lang %}{{ article.lang }}{% endblock %}
-{% block title %}{{ SITENAME }} - {{ article.title|striptags }}{% endblock %}
+{% block title %}{{ SITENAME|striptags }} - {{ article.title|striptags }}{% endblock %}
{% block head %}
{{ super() }}
diff --git a/pelican/themes/simple/templates/author.html b/pelican/themes/simple/templates/author.html
index 79d22c7d..64aadffb 100644
--- a/pelican/themes/simple/templates/author.html
+++ b/pelican/themes/simple/templates/author.html
@@ -1,6 +1,6 @@
{% extends "index.html" %}
-{% block title %}{{ SITENAME }} - Articles by {{ author }}{% endblock %}
+{% block title %}{{ SITENAME|striptags }} - Articles by {{ author }}{% endblock %}
{% block content_title %}
Articles by {{ author }}
diff --git a/pelican/themes/simple/templates/authors.html b/pelican/themes/simple/templates/authors.html
index 9aee5db4..9b80b499 100644
--- a/pelican/themes/simple/templates/authors.html
+++ b/pelican/themes/simple/templates/authors.html
@@ -1,6 +1,6 @@
{% extends "base.html" %}
-{% block title %}{{ SITENAME }} - Authors{% endblock %}
+{% block title %}{{ SITENAME|striptags }} - Authors{% endblock %}
{% block content %}
Authors on {{ SITENAME }}
diff --git a/pelican/themes/simple/templates/base.html b/pelican/themes/simple/templates/base.html
index 1d8ae843..3125e5aa 100644
--- a/pelican/themes/simple/templates/base.html
+++ b/pelican/themes/simple/templates/base.html
@@ -2,33 +2,33 @@
{% block head %}
- {% block title %}{{ SITENAME }}{% endblock title %}
+ {% block title %}{{ SITENAME|striptags }}{% endblock title %}
{% if FEED_ALL_ATOM %}
-
+
{% endif %}
{% if FEED_ALL_RSS %}
-
+
{% endif %}
{% if FEED_ATOM %}
-
+
{% endif %}
{% if FEED_RSS %}
-
+
{% endif %}
{% if CATEGORY_FEED_ATOM and category %}
-
+
{% endif %}
{% if CATEGORY_FEED_RSS and category %}
-
+
{% endif %}
{% if TAG_FEED_ATOM and tag %}
-
+
{% endif %}
{% if TAG_FEED_RSS and tag %}
-
+
{% endif %}
{% endblock head %}
diff --git a/pelican/themes/simple/templates/categories.html b/pelican/themes/simple/templates/categories.html
index 7999de43..f099e88f 100644
--- a/pelican/themes/simple/templates/categories.html
+++ b/pelican/themes/simple/templates/categories.html
@@ -1,6 +1,6 @@
{% extends "base.html" %}
-{% block title %}{{ SITENAME }} - Categories{% endblock %}
+{% block title %}{{ SITENAME|striptags }} - Categories{% endblock %}
{% block content %}
Categories on {{ SITENAME }}
diff --git a/pelican/themes/simple/templates/category.html b/pelican/themes/simple/templates/category.html
index d73f6e31..f7889d00 100644
--- a/pelican/themes/simple/templates/category.html
+++ b/pelican/themes/simple/templates/category.html
@@ -1,6 +1,6 @@
{% extends "index.html" %}
-{% block title %}{{ SITENAME }} - {{ category }} category{% endblock %}
+{% block title %}{{ SITENAME|striptags }} - {{ category }} category{% endblock %}
{% block content_title %}
Articles in the {{ category }} category
diff --git a/pelican/themes/simple/templates/page.html b/pelican/themes/simple/templates/page.html
index 33344eac..eea816a9 100644
--- a/pelican/themes/simple/templates/page.html
+++ b/pelican/themes/simple/templates/page.html
@@ -1,7 +1,7 @@
{% extends "base.html" %}
{% block html_lang %}{{ page.lang }}{% endblock %}
-{% block title %}{{ SITENAME }} - {{ page.title|striptags }}{%endblock%}
+{% block title %}{{ SITENAME|striptags }} - {{ page.title|striptags }}{%endblock%}
{% block head %}
{{ super() }}
diff --git a/pelican/themes/simple/templates/period_archives.html b/pelican/themes/simple/templates/period_archives.html
index e1ddf626..9cdc354d 100644
--- a/pelican/themes/simple/templates/period_archives.html
+++ b/pelican/themes/simple/templates/period_archives.html
@@ -1,6 +1,6 @@
{% extends "base.html" %}
-{% block title %}{{ SITENAME }} - {{ period | reverse | join(' ') }} archives{% endblock %}
+{% block title %}{{ SITENAME|striptags }} - {{ period | reverse | join(' ') }} archives{% endblock %}
{% block content %}
Archives for {{ period | reverse | join(' ') }}
diff --git a/pelican/themes/simple/templates/tag.html b/pelican/themes/simple/templates/tag.html
index 93878134..59725a05 100644
--- a/pelican/themes/simple/templates/tag.html
+++ b/pelican/themes/simple/templates/tag.html
@@ -1,6 +1,6 @@
{% extends "index.html" %}
-{% block title %}{{ SITENAME }} - {{ tag }} tag{% endblock %}
+{% block title %}{{ SITENAME|striptags }} - {{ tag }} tag{% endblock %}
{% block content_title %}
Articles tagged with {{ tag }}
diff --git a/pelican/themes/simple/templates/tags.html b/pelican/themes/simple/templates/tags.html
index b90b0ac3..92c142d2 100644
--- a/pelican/themes/simple/templates/tags.html
+++ b/pelican/themes/simple/templates/tags.html
@@ -1,6 +1,6 @@
{% extends "base.html" %}
-{% block title %}{{ SITENAME }} - Tags{% endblock %}
+{% block title %}{{ SITENAME|striptags }} - Tags{% endblock %}
{% block content %}
Tags for {{ SITENAME }}