Skip to content

Commit 5ced55c

Browse files
fix: revert entity replacement
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
1 parent 35c8e0f commit 5ced55c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webview-ui/src/components/chat/ChatTextArea.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
501501

502502
highlightLayerRef.current.innerHTML = text
503503
.replace(/\n$/, "\n\n")
504-
.replace(/[<>&]/g, (c) => ({ "<": "<", ">": ">", "&": "&amp;" })[c] || c)
504+
.replace(/[<>&]/g, (c) => ({ "<": "&lt;", ">": "&gt;", "&": "&amp;" })[c] || c)
505505
.replace(mentionRegexGlobal, '<mark class="mention-context-textarea-highlight">$&</mark>')
506506

507507
highlightLayerRef.current.scrollTop = textAreaRef.current.scrollTop

0 commit comments

Comments
 (0)