fix(PublicPage): escape " which cause JSON parsing error in home page
This commit is contained in:
parent
bea0b0e24e
commit
7602fb7dd3
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ export default class PublicController {
|
||||||
return {
|
return {
|
||||||
_id: o._id,
|
_id: o._id,
|
||||||
name: version.name,
|
name: version.name,
|
||||||
description: version.descriptionShort.replace(/\n/g, ' '),
|
description: version.descriptionShort.replace(/\n/g, ' ').replace(/\"/g, '\\"'),
|
||||||
thumbnail: version.thumbnail.key,
|
thumbnail: version.thumbnail.key,
|
||||||
tags: version.tags === null ? 'tags_not_found' : version.tags,
|
tags: version.tags === null ? 'tags_not_found' : version.tags,
|
||||||
slug: o.get('slugs')[o.get('slugs').length -1]
|
slug: o.get('slugs')[o.get('slugs').length -1]
|
||||||
|
|
Loading…
Reference in a new issue