fix: 移除 workspace-panel.ts 中重复的 escapeHtml 声明
This commit is contained in:
@@ -744,14 +744,6 @@ function getToolIcon(name: string): string {
|
||||
return icons[name] || '🔧';
|
||||
}
|
||||
|
||||
function escapeHtml(text: string): string {
|
||||
return text
|
||||
.replace(/&/g, '&')
|
||||
.replace(/</g, '<')
|
||||
.replace(/>/g, '>')
|
||||
.replace(/"/g, '"');
|
||||
}
|
||||
|
||||
function renderToolCard(tc: ToolCallRecord): string {
|
||||
const icon = getToolIcon(tc.name);
|
||||
const name = getToolDisplayName(tc.name);
|
||||
|
||||
Reference in New Issue
Block a user