Copilot App HTML-Encoding Code Input Issue

Brian Brown 0 Reputation points
2026-10-09T21:16:01.61+00:00

Title: Copilot App HTML-Encoding Code Input

Description:

The Copilot app is incorrectly HTML-encoding code and text input.

Examples:

Typed:

1 < 2

Received by Copilot as:

1 & lt; 2

Google Apps Script code is also being transformed:

for (let i = 0; i < 10; i++) {

  Logger.log(i);

}

becomes:

for (let i = 0; i & lt; 10; i++) {

}

Code blocks additionally contain literal <br> tags that were not present in the source code.

This issue started suddenly after several days of normal code pasting and makes reviewing and editing code difficult.

Platform: Copilot App for macOS

Impact: Code submitted to Copilot is altered before processing, affecting JavaScript, Google Apps Script, and other programming languages.

Microsoft Copilot | Other
0 comments No comments

1 answer

Sort by: Most helpful
  1. Carl-L 23,450 Reputation points Microsoft External Staff Moderator
    2026-10-10T09:19:20.8533333+00:00

    Hello Brian Brown,

    Welcome to Microsoft Q&A forum.

    Before we proceed, may I know if this issue happens in any other platform of Copilot? Same question about copilot on the web.

    I'm waiting for your reply.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.