MCPcopy
hub / github.com/angular/angular / encodeUriSegment

Function encodeUriSegment

packages/router/src/url_tree.ts:548–550  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

546 * http://www.site.org/html;mk=mv?k=v#f
547 */
548export function encodeUriSegment(s: string): string {
549 return encodeUriString(s).replace(/\(/g, '%28').replace(/\)/g, '%29').replace(/%26/gi, '&');
550}
551
552export function decode(s: string): string {
553 return decodeURIComponent(s);

Callers 3

serializePathFunction · 0.70
serializeMatrixParamsFunction · 0.70

Calls 2

encodeUriStringFunction · 0.85
replaceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…