'use strict'; /* svg-sanitize.js — whitelist sanitizer for inline drawings. * * Shared by the browser (DOM-based whitelist, robust) and Node (regex-based * conservative strip, no DOM dependency). Defense-in-depth: the SvgDraw editor * only emits a safe subset, but stored block data could be tampered with, so * BOTH the server (on save) and the client (on render) clean it. * * Allowed: a fixed set of geometric/text elements + geometric & style attrs. * Removed: