Skip to content

Commit b3972d1

Browse files
BobChao87gkalpak
authored andcommitted
docs($resource): encode ) in link
JSDoc to HTML converter was treating the close parenthesis in `[MDN](...#toJson()_behavior)` as the final close parenthesis, thus resulting in a broken link. This commit fixes it by percent-encoding the parentesis in the link address. Closes angular#15825
1 parent c3e0d58 commit b3972d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngResource/resource.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ function shallowClearAndCopy(src, dst) {
280280
* the Resource API. This object can be serialized through {@link angular.toJson} safely
281281
* without attaching Angular-specific fields. Notice that `JSON.stringify` (and
282282
* `angular.toJson`) automatically use this method when serializing a Resource instance
283-
* (see [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#toJSON()_behavior)).
283+
* (see [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#toJSON%28%29_behavior)).
284284
*
285285
* @example
286286
*

0 commit comments

Comments
 (0)