Skip to content
This repository was archived by the owner on Oct 17, 2025. It is now read-only.
This repository was archived by the owner on Oct 17, 2025. It is now read-only.

@link breaks JSON output #163

@vozeldr

Description

@vozeldr

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"
    ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions