From: M. Taylor Saotome-Westlake Date: Tue, 1 Sep 2020 00:51:23 +0000 (-0700) Subject: strip HTML inside tags X-Git-Url: http://534655.efjtl6rk.asia/source?a=commitdiff_plain;h=c8bd048c321bc44f525ebb9144a5356e3f13574d;p=Ultimately_Untrue_Thought.git strip HTML inside <title> tags --- diff --git a/notes/tech_tasks.txt b/notes/tech_tasks.txt index a1de76c..498c9dc 100644 --- a/notes/tech_tasks.txt +++ b/notes/tech_tasks.txt @@ -1,4 +1,3 @@ -filter HTML (e.g., <em>) from rendered post <title>s /count firing on individual post pages (suboptimal) rework footnotes plugin!? (Markdown footnote format is better than [ref][/ref] tags) self-host a copy of Source Sans Pro (I'm annoyed that my devserver preview fonts are ugly when I've killed my network connection so I can focus for once) diff --git a/theme/templates/article.html b/theme/templates/article.html index 2069815..1d1ba69 100644 --- a/theme/templates/article.html +++ b/theme/templates/article.html @@ -1,5 +1,5 @@ {% extends "base.html" %} -{% block title %}{{ article.title }} ★ {{ SITENAME }}{% endblock %} +{% block title %}{{ article.title|striptags }} ★ {{ SITENAME }}{% endblock %} {% block extra_meta %}