Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 11, 2025

The safe output sanitization now allows a broader set of HTML tags for better content formatting while removing potentially problematic tags.

Changes

  • Added tags: h1-h6 (headings), hr (horizontal rule), pre (preformatted text), sub/sup (subscript/superscript), table/tbody/thead/tr/td/th (table elements)
  • Removed tags: details, summary, u (underline)
  • Updated: pkg/workflow/js/sanitize_content.cjs and corresponding tests
  • Recompiled: All 108 workflow lock files to embed updated sanitization logic

New Allowed Tags

const allowedTags = [
  "b", "blockquote", "br", "code", "em",
  "h1", "h2", "h3", "h4", "h5", "h6",
  "hr", "i", "li", "ol", "p", "pre",
  "strong", "sub", "sup",
  "table", "tbody", "td", "th", "thead", "tr", "ul"
];

This affects all AI-generated content in GitHub issues, PRs, discussions, and comments created through agentic workflows.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/user
    • Triggering command: /usr/bin/gh gh api user --jq .login /ref/tags/v8 /tmp/go-build1085622423/b033/vet--log-format $name) { hasDiscussionsEnabled } } GOSUMDB GOWORK ease /opt/hostedtoolcache/go/1.25.0/xTest User -uns�� -unreachable=false /tmp/go-build1085622423/b082/vet.cfg /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/vet *.ts' '**/*.json/tmp/gh-aw-compile-integration-3407499354/gh-aw (http block)
    • Triggering command: /usr/bin/gh gh api user --jq .login 16/create_pull_request.js /tmp/go-build1085622423/b145/vet1d801311d0541ff56a3420d194e7b50aeebfc1ea1983662cfb111c1098e632d8-1 (http block)
    • Triggering command: /usr/bin/gh gh api user --jq .login -unreachable=false /tmp/go-build1085622423/b080/vet.cfg 5bf59e80a155590f348061d57d40209313b/log.json JxoI/WrPBVIMzDvAgh run 64/pkg/tool/linulist /opt/hostedtoolc--json -ato�� pload-artifact/git/ref/tags/v5 -buildtags 1/x64/bin/node -errorsas -ifaceassert -nilfunc git (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Update allowed HTML tag list: b, blockquote, br, code, em, h1–h6, hr, i, li, ol, p, pre, strong, sub, sup, table, tbody, td, th, thead, tr, ul


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 3 commits December 11, 2025 04:53
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Update allowed HTML tag list for content rendering Update allowed HTML tags in safe output sanitization Dec 11, 2025
Copilot AI requested a review from pelikhan December 11, 2025 05:15
@pelikhan pelikhan marked this pull request as ready for review December 11, 2025 05:16
@pelikhan pelikhan merged commit e001930 into main Dec 11, 2025
5 checks passed
@pelikhan pelikhan deleted the copilot/update-allowed-html-tags branch December 11, 2025 05:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants