@link breaks JSON output #163
Open
Comments
|
Yeah, I had that problem recently. The trouble is that the inline tag doesn't know that it is going to be output as JSON. |
|
I ended up using a task that processes after the dgeni task:
It seems like something that should be reasonable to have fixed in the inline tag processor or somewhere, though. |
|
As I said, how would the inline tag processor know that it needs to escape for JSON? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: