[Bug] Unescaped apostrophes in string literals break UI code generation
Status Closed — not planned
Reported on v2.1.70
Maintainer reply None cached
Activity 3 comments · opened Mar 7, 2026 · closed Apr 4, 2026
Bug Description
It's recurring Claude is not properly escaping apostrophes when developing UI. String literals like "Let's" or "You're" break a build. This is a very basic coding rule, honestly a rookie mistake, that costs tokens every time it needs to rebuild. On automated pipelines, it means a product won't reach production... Happened at least with Sonnet, both on Claude Code and through Claude API.
Environment Info
- Platform: win32
- Terminal: vscode
- Version: 2.1.70
- Feedback ID: 873d7c22-20ee-4dcf-ae7f-9eddc7a659cb
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗