Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: prompt and preview not show html like tag (#201)
Joel1d06eba61aec
diff --git a/web/app/components/app/configuration/features/chat-group/opening-statement/index.tsx b/web/app/components/app/configuration/features/chat-group/opening-statement/index.tsxindex 3feacd22abf..185e107ca60 100644--- a/web/app/components/app/configuration/features/chat-group/opening-statement/index.tsx+++ b/web/app/components/app/configuration/features/chat-group/opening-statement/index.tsx@@ -58,6 +58,8 @@ const OpeningStatement: FC<IOpeningStatementProps> = ({const coloredContent = (tempValue || '').replace(regex, varHighlightHTML({ name: '$1' })) // `<span class="${highLightClassName}">{{$1}}</span>`.replace(/\n/g, '<br />')+ .replace(/</g, '<')+ .replace(/>/g, '>')const handleEdit = () => {diff --git a/web/app/components/app/configuration/prompt-value-panel/index.tsx b/web/app/components/app/configuration/prompt-value-panel/index.tsxindex e5884bf3fbd..3417d06de4c 100644--- a/web/app/components/app/configuration/prompt-value-panel/index.tsx+++ b/web/app/components/app/configuration/prompt-value-panel/index.tsx@@ -75,7 +75,7 @@ const PromptValuePanel: FC<IPromptValuePanelProps> = ({<divclassName="max-h-48 overflow-y-auto text-sm text-gray-700 break-all"dangerouslySetInnerHTML={{- __html: format(replaceStringWithValuesWithFormat(promptTemplate, promptVariables, inputs)),+ __html: format(replaceStringWithValuesWithFormat(promptTemplate.replace(/</g, '<').replace(/>/g, '>'), promptVariables, inputs)),}}></div>diff --git a/web/app/components/base/block-input/index.tsx b/web/app/components/base/block-input/index.tsxindex 1b9758593fb..440fd63d135 100644--- a/web/app/components/base/block-input/index.tsx+++ b/web/app/components/base/block-input/index.tsx@@ -70,6 +70,8 @@ const BlockInput: FC<IBlockInputProps> = ({const coloredContent = (currentValue || '').replace(regex, varHighlightHTML({ name: '$1' })) // `<span class="${highLightClassName}">{{$1}}</span>`.replace(/\n/g, '<br />')+ .replace(/</g, '<')+ .replace(/>/g, '>')// Not use useCallback. That will cause out callback get old data.const handleSubmit = () => {