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

Function cssEscape

packages/app-core/src/components/ArchiveView.tsx:26–29  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

24}
25
26function cssEscape(value: string): string {
27 if (typeof CSS !== 'undefined' && typeof CSS.escape === 'function') return CSS.escape(value)
28 return value.replace(/["\\]/g, '\\$&')
29}
30
31export function ArchiveView(): JSX.Element {
32 const vault = useStore((s) => s.vault)

Callers 1

ArchiveViewFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected