fn

isSafeHref

Relative URLs and the web schemes; javascript: and friends are refused at the parse boundary.

Signature

ts
export function isSafeHref(href: string): boolean{ ... }

Parameters

ParameterTypeDescription
hrefstring—

Returns

boolean