# agent: Add XML escaping for TextThreadContext title attribute \(\#39734\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/d7b7fa3ee22d88402d39285d1a2aac1a5b676e00)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: d7b7fa3ee22d88402d39285d1a2aac1a5b676e00

Requested commit: d7b7fa3ee22d88402d39285d1a2aac1a5b676e00

Commit: d7b7fa3ee22d88402d39285d1a2aac1a5b676e00

Tree: 1540f714ce09c26ffc35878488429f32f8928ac5

Author: Xiaobo Liu

Committer: GitHub

## Message

```
agent: Add XML escaping for TextThreadContext title attribute (#39734)

Escape special characters (&, <, >, ", ') in the title attribute of
TextThreadContext's XML output to prevent malformed XML when titles
contain these characters.

Resolves TODO at context.rs:629

Release Notes:

- N/A

Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com>
Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
```

## Parents

- [7cfce605704d41ca247e3f84804bf323f6c6caaf](https://git.cafe/gitcafe/zed/commit/7cfce605704d41ca247e3f84804bf323f6c6caaf?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/d7b7fa3ee22d88402d39285d1a2aac1a5b676e00?format=markdown)
