Files
vscode/build/lib
Josh Spicer f3fce8dd78 policy: escape XML special characters in ADML/profile output (#322148)
* policy: escape XML special characters in ADML/profile output (#320551)

Policy descriptions containing angle brackets (e.g. `<plugin>@<marketplace>`,
`<url>`) produced invalid XML in generated ADML and macOS profile files,
causing Intune and Active Directory upload failures.

Add `escapeXml` helper that escapes `&`, `<`, and `>` in text content
and apply it in `renderADMLString` and `renderProfileString`. Add unit
tests for the escaper and an E2E regression test with angle-bracket
descriptions.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* policy: replace angle brackets with curly braces in plugin description placeholders (#320551)

The policy descriptions for ChatEnabledPlugins and ChatExtraMarketplaces
used `<plugin>`, `<marketplace>`, and `<url>` as placeholder tokens.
These are not HTML/XML tags — replace with `{plugin}`, `{marketplace}`,
and `{url}` to avoid ambiguity and eliminate the source of the invalid
XML that was fixed in the previous commit.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* address PR review: remove useless backtick escapes, clarify test name

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-19 13:40:28 -07:00
..
2026-06-11 16:39:32 +02:00