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>
d7b7fa3ee2Xiaobo Liu committed on 11/3/2025, 6:16:36 PM· committed by GitHubparent7cfce60
1 file changedLine totals unavailable