mcp-server-semgrep
Version:
MCP Server for Semgrep Integration - static code analysis with AI
10 lines (8 loc) • 363 B
text/typescript
function encodeProductDescription (tableData: any[]) {
for (let i = 0; i < tableData.length; i++) {
// ruleid: detect-replaceall-sanitization
tableData[i].description = tableData[i].description.replaceAll('<', '<').replaceAll('>', '>')
// ok
tableData[i].description = tableData[i].description.replaceAll('<', 'left angle bracket')
}
}