Skip to content

encodeUrl

Encodes a URL.

Import:

import { encodeUrl } from 'obsidian-dev-utils/obsidian/parse-link';

Signature:

function encodeUrl(url: string): string

Parameters:

ParameterTypeDescription
urlstringThe URL to encode.

Returns: string — The encoded URL.