Skip to content

Function: safeHref() ​

ts
function safeHref(href): string | null;

Defined in: util/safe-url.ts:8

Returns the href unchanged if its scheme is safe to render, otherwise null.

Parameters ​

ParameterType
hrefunknown

Returns ​

string | null