From 3c8685c98651bedcd0d26ba48789b2ccc6e33cfd Mon Sep 17 00:00:00 2001 From: Jan Broer Date: Sun, 11 Oct 2015 21:30:43 +0200 Subject: [PATCH] Don't strip html tags for book description Fixes #2 --- cps/static/css/style.css | 1 + cps/templates/detail.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cps/static/css/style.css b/cps/static/css/style.css index ff35628b..922df081 100644 --- a/cps/static/css/style.css +++ b/cps/static/css/style.css @@ -17,3 +17,4 @@ a{color: #45b29d}a:hover{color: #444;} .more-stuff{margin-top: 20px; padding-top: 20px; border-top: 1px solid #ccc} .more-stuff>li{margin-bottom: 10px;} .navbar-collapse.in .navbar-nav{margin: 0;} +span.glyphicon.glyphicon-tags {padding-right: 5px;} diff --git a/cps/templates/detail.html b/cps/templates/detail.html index f67c923e..227a57ec 100644 --- a/cps/templates/detail.html +++ b/cps/templates/detail.html @@ -40,7 +40,7 @@ {% if entry.comments|length > 0 %}

Description:

- {{entry.comments[0].text|striptags}} + {{entry.comments[0].text|safe}} {% endif %} {% if g.user.is_authenticated() %}