Skip to content

Conversation

sauravbaid3
Copy link

Issue: The issue was that the Flowise UI was adding HTML/markdown formatting to JSON input fields, but the stripHTMLFromToolInput function was not being applied consistently to all JSON parsing operations. This caused:
JSON Parse Failures: When tools tried to parse input that contained HTML formatting
Inconsistent Behavior: Some fields worked while others failed
User Confusion: Valid JSON inputs were being rejected due to hidden formatting

Fix: The stripHTMLFromToolInput function:
Removes HTML formatting using TurndownService
Cleans up escaped characters that might interfere with JSON parsing
Returns clean text that can be safely parsed as JSON

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant