fix: 移除 workspace-panel.ts 中重复的 escapeHtml 声明

This commit is contained in:
thzxx
2026-04-19 19:06:00 +08:00
parent a79ce976f3
commit 8d03f42611
2 changed files with 144 additions and 23 deletions
@@ -744,14 +744,6 @@ function getToolIcon(name: string): string {
return icons[name] || '🔧';
}
function escapeHtml(text: string): string {
return text
.replace(/&/g, '&')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;')
.replace(/"/g, '&quot;');
}
function renderToolCard(tc: ToolCallRecord): string {
const icon = getToolIcon(tc.name);
const name = getToolDisplayName(tc.name);