[Bug] Unescaped apostrophes in string literals break UI code generation

Resolved 💬 3 comments Opened Mar 7, 2026 by nicochristie 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

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗