MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / cssEscape

Function cssEscape

packages/app-core/src/components/QuickNotesView.tsx:21–24  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

19}
20
21function cssEscape(value: string): string {
22 if (typeof CSS !== 'undefined' && typeof CSS.escape === 'function') return CSS.escape(value)
23 return value.replace(/["\\]/g, '\\$&')
24}
25
26export function QuickNotesView(): JSX.Element {
27 const notes = useStore((s) => s.notes)

Callers 1

QuickNotesViewFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected