From ac777ca5064c8544818da92648c9f24a33bfb3e0 Mon Sep 17 00:00:00 2001 From: Matthieu Bessat Date: Tue, 11 Aug 2020 12:06:33 +0200 Subject: [PATCH] fix: WTF is that twig.js? I'm dissapointed by you. It really html escaping disabled by default? I can't believe that --- src/controllers/PublicController.ts | 2 +- views/countdown.twig | 2 +- views/home.twig | 10 ++-- views/organization.twig | 72 ++++++++++++++--------------- 4 files changed, 43 insertions(+), 43 deletions(-) diff --git a/src/controllers/PublicController.ts b/src/controllers/PublicController.ts index 4e44def..9531756 100644 --- a/src/controllers/PublicController.ts +++ b/src/controllers/PublicController.ts @@ -51,7 +51,7 @@ export default class PublicController { return { _id: o._id, name: version.name, - description: version.descriptionShort.replace(/\n/g, ' ').replace(/\"/g, '\\"'), + description: version.descriptionShort.replace(/\n/g, ' '), thumbnail: version.thumbnail.key, tags: version.tags === null ? 'tags_not_found' : version.tags, slug: o.get('slugs')[o.get('slugs').length -1] diff --git a/views/countdown.twig b/views/countdown.twig index 74c5c3f..a747554 100644 --- a/views/countdown.twig +++ b/views/countdown.twig @@ -4,7 +4,7 @@ - + diff --git a/views/home.twig b/views/home.twig index af5e653..36f6ccc 100644 --- a/views/home.twig +++ b/views/home.twig @@ -3,8 +3,8 @@ {% block head %} - - + + {% endblock %} @@ -55,13 +55,13 @@