fix: prompt and preview not show html like tag (#201)
This commit is contained in:
parent
93e99fb343
commit
1d06eba61a
3 changed files with 5 additions and 1 deletions
|
|
@ -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 = () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue