Skip to main content

Function: parseReference()

parseReference(text): ReactNode[]

Defined in: ui/GeoVisLegend.tsx:74

Parses a reference string and returns an array of React nodes. Inline link syntax: {link:visible text|https://example.com} is rendered as a @ttoss/ui Link component. URLs with non-http(s) schemes are rendered as plain text to prevent unsafe navigation.

Parameters

ParameterType
textstring

Returns

ReactNode[]