# Function emitSanitizationEvent

- emitSanitizationEvent(
  trail: AuditTrail,
  data: Omit<SanitizationEvent, "id" | "timestamp" | "type" | "component">,
  ): string

  Records an input sanitization result.

  #### Parameters

  - trail: AuditTrail
  - data: Omit<SanitizationEvent, "id" | "timestamp" | "type" | "component">

  #### Returns string

  - Defined in packages/nexus-agents/src/security/audit-trail.ts:283