4 ms·
I use tagged templates for ensuring URL paths are URI safe, like so: const path = esc`/my/api/v1/${possiblyURIUnsafeVariable}`
by rhinoceraptor 8y ago
I use tagged templates for ensuring URL paths are URI safe, like so:
const path = esc`/my/api/v1/${possiblyURIUnsafeVariable}`