Strip tags from article title. Fixes #71.

This commit is contained in:
Justin Mayer
2013-03-30 10:50:57 -07:00
parent 100b0bc7a9
commit 250484f57a
2 changed files with 5 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
{% extends "base.html" %}
{% block title %}{{ article.title }}{% endblock %}
{% block content %}
<section id="content" class="body">
{% block title %}{{ article.title|striptags }}{% endblock %}
{% block content %}
<section id="content" class="body">
<article>
<header> <h1 class="entry-title"><a href="{{ article.url }}"
rel="bookmark" title="Permalink to {{ article.title }}">{{ article.title
@@ -16,7 +16,7 @@
Par <a class="url fn" href="#">{{ article.author }}</a>
</address>
{% endif %}
<p>Dans <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>.
<p>Dans <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>.
{% include 'taglist.html' %}
</footer><!-- /.post-info -->
{{ article.content }}

View File

@@ -1,5 +1,5 @@
{% extends "base.html" %}
{% block title %}{{ article.title }}{% endblock %}
{% block title %}{{ article.title|striptags }}{% endblock %}
{% block content %}
<section id="content" class="body">
<article>