|
@@ -68,10 +68,11 @@ 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, '>')
|
|
|
+ .replace(regex, varHighlightHTML({ name: '$1' })) // `<span class="${highLightClassName}">{{$1}}</span>`
|
|
|
+ .replace(/\n/g, '<br />')
|
|
|
+
|
|
|
|
|
|
// Not use useCallback. That will cause out callback get old data.
|
|
|
const handleSubmit = () => {
|