fix(api-builder): escape double-quotes in JSON output
This commit is contained in:
parent
1646c45d67
commit
c3bb033cc1
|
@ -6,7 +6,7 @@
|
|||
"docType": "{$ item.docType $}",
|
||||
"stability": "{$ item.stability $}",
|
||||
"secure": "{$ item.security $}",
|
||||
"howToUse": "{$ item.howToUse $}",
|
||||
"howToUse": "{$ item.howToUse | replace('"','\\"') $}",
|
||||
"whatItDoes": {% if item.whatItDoes %}"Exists"{% else %}"Not Done"{% endif %},
|
||||
"barrel" : "{$ module | replace("/index", "") $}"
|
||||
}{% if not loop.last %},{% endif %}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"docType": "{$ item.docType $}",
|
||||
"stability": "{$ item.stability $}",
|
||||
"secure": "{$ item.security $}",
|
||||
"howToUse": "{$ item.howToUse $}",
|
||||
"howToUse": "{$ item.howToUse | replace('"','\\"') $}",
|
||||
"whatItDoes": {% if item.whatItDoes %}"Exists"{% else %}"Not Done"{% endif %},
|
||||
"barrel" : "{$ module | replace("/index", "") $}"
|
||||
}{% if not loop.last %},{% endif %}
|
||||
|
|
Loading…
Reference in New Issue