/ utils / sandbox / sandbox-ui-utils.ts
sandbox-ui-utils.ts
 1  /**
 2   * UI utilities for sandbox violations
 3   * These utilities are used for displaying sandbox-related information in the UI
 4   */
 5  
 6  /**
 7   * Remove <sandbox_violations> tags from text
 8   * Used to clean up error messages for display purposes
 9   */
10  export function removeSandboxViolationTags(text: string): string {
11    return text.replace(/<sandbox_violations>[\s\S]*?<\/sandbox_violations>/g, '')
12  }