You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm generating JSON using dgeni but when I have a description with {@link ...} it generates a correct anchor tag but the double quotes around the href attribute value are not escaped, causing the whole JSON file to be invalid and not parsable.
Example: @property {string} merp The merp. Supported merps are defined in the {@link MerpTypes} constant.
Generates:
{
"name": "merp",
"description": "<p>The merp. Supported merps are defined in the <a href="api/my-module/object/MerpTypes"><code>MerpTypes</code></a> constant.</p>\n",
"type": [
"string"
]
}
The text was updated successfully, but these errors were encountered:
As I said, how would the inline tag processor know that it needs to escape for JSON?
The link inline tag is generating HTML links so it is reasonable for it to expect to be used in a HTML format.
I'm generating JSON using dgeni but when I have a description with {@link ...} it generates a correct anchor tag but the double quotes around the href attribute value are not escaped, causing the whole JSON file to be invalid and not parsable.
Example:
@property {string} merp The merp. Supported merps are defined in the {@link MerpTypes} constant.
Generates:
The text was updated successfully, but these errors were encountered: