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
| Parameter | Type | Description |
|---|---|---|
href | string | — |
Returns
booleanRelative URLs and the web schemes; javascript: and friends are refused at the parse boundary.
export function isSafeHref(href: string): boolean{ ... }| Parameter | Type | Description |
|---|---|---|
href | string | — |
boolean