@mocanvas/editor · function

sanitizeId

declare function sanitizeId(id: string): SafeId

Make an arbitrary string usable as a fragment identifier, and prefix it so it cannot start with a digit.

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.