|
@@ -70,6 +70,8 @@ const BlockInput: FC<IBlockInputProps> = ({
|
|
const coloredContent = (currentValue || '')
|
|
const coloredContent = (currentValue || '')
|
|
.replace(regex, varHighlightHTML({ name: '$1' })) // `<span class="${highLightClassName}">{{$1}}</span>`
|
|
.replace(regex, varHighlightHTML({ name: '$1' })) // `<span class="${highLightClassName}">{{$1}}</span>`
|
|
.replace(/\n/g, '<br />')
|
|
.replace(/\n/g, '<br />')
|
|
|
|
+ .replace(/</g, '<')
|
|
|
|
+ .replace(/>/g, '>')
|
|
|
|
|
|
// Not use useCallback. That will cause out callback get old data.
|
|
// Not use useCallback. That will cause out callback get old data.
|
|
const handleSubmit = () => {
|
|
const handleSubmit = () => {
|