From eef30844bc3a0ad0e8ae26cec7663983dd9b63a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 22 Feb 2013 10:54:19 +0100 Subject: [PATCH] homepage: handle category description as html if it starts with < (#2537) --- extra/modules/root.ptl | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/extra/modules/root.ptl b/extra/modules/root.ptl index 91e56d8..4703f50 100644 --- a/extra/modules/root.ptl +++ b/extra/modules/root.ptl @@ -936,9 +936,12 @@ class AlternateRootDirectory(OldRootDirectory): category.name '\n' if category.description: - '

' - category.description - '

' + if category.description[0] == '<': + htmltext(category.description) + else: + '

' + category.description + '

' '