Server-side validation of submitted SignaturePad values. Accepts only the svg markup the SignaturePad component itself writes, so a tampered value (scripts, links, foreign elements or attributes) is rejected before it is stored or rendered again. Methods (static) validate(value, maxLengthopt) → {boolean} Validates a submitted SignaturePad value. Returns true if the value is an empty signature or a valid SignaturePad svg, otherwise false. Parameters: Name Type Attributes Default Description value string The submitted value. maxLength number <optional> 200000 The maximum allowed length of the value in characters. Returns: Type boolean Example import { validate } from './SignaturePadValidator.js'; if (!validate(request.body.signature)) throw new Error('Invalid signature.');