MCPcopy Create free account
hub / github.com/angular/angular / encodeUriSegment

Function encodeUriSegment

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

Source from the content-addressed store, hash-verified

609 * http://www.site.org/html;mk=mv?k=v#f
610 */
611export function encodeUriSegment(s: string): string {
612 return encodeUriString(s).replace(/\(/g, '%28').replace(/\)/g, '%29').replace(/%26/gi, '&');
613}
614
615export function decode(s: string): string {
616 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