fix: WTF is that twig.js? I'm dissapointed by you.

It really html escaping disabled by default? I can't believe that
This commit is contained in:
Matthieu Bessat 2020-08-11 12:06:33 +02:00
parent bbd822c0b8
commit ac777ca506
4 changed files with 43 additions and 43 deletions

View file

@ -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]