Skip to main content

SANITIZE

Sanitizes text input. Can strip markdown code blocks, normalize Unicode characters (quotes, dashes, spaces), and validate/repair XML content before forwarding the result to the flow context.

At a glance

  • Category Utils
  • Version: 1.0.12
  • Applications: all
  • Scope: all

Config Options

NameDescriptionDefaultRequiredResolvedConstraintsConditional Rules
stripMarkdownIf true, removes markdown code blocks (...) from the input before further processing.falsefalsefalseNoneNone
validateAndRepairXmlIf true, attempts to validate and repair XML fragments found in the input.falsefalsefalseNoneNone
normalizeCharactersIf true, normalizes Unicode characters to their standard equivalents (e.g., curly quotes to straight quotes, various dashes to hyphens, non-breaking spaces to regular spaces). This ensures consistency between AI responses and input text.falsefalsefalseNoneNone

Inputs

TypeDescriptionDefaultRequiredResolved
textText input to sanitizeNonetruefalse

Outputs

TypeDescriptionOptional
textSanitized text output after processing.false

Examples

Sanitize by stripping markdown code blocks

- step: SANITIZE
stripMarkdown: true

Sanitize and validate/repair XML

- step: SANITIZE
validateAndRepairXml: true

Normalize Unicode characters

- step: SANITIZE
normalizeCharacters: true

Combined sanitization

- step: SANITIZE
stripMarkdown: true
normalizeCharacters: true
validateAndRepairXml: true

See Also

General Resources: