Skip to content

Commit 3b76781

Browse files
Copilotcoliff
andauthored
Update SARIF test fixture to match updated spec-char-escape documentation (#1754)
* Initial plan * Fix failing SARIF formatter test by updating test fixture Co-authored-by: coliff <1212885+coliff@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: coliff <1212885+coliff@users.noreply.github.com> Co-authored-by: Christian Oliff <christianoliff@pm.me>
1 parent 191d4c8 commit 3b76781

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/cli/formatters/sarif.sarif

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"helpUri": "https://htmlhint.com/rules/spec-char-escape",
4949
"help": {
5050
"text": "Special characters must be escaped.",
51-
"markdown": "\nSpecial characters must be escaped.\n\nLevel: Error\n\n## Config value\n\n- `true`: enable rule\n- `false`: disable rule\n\n### The following patterns are **not** considered violations\n\n```html\n`<span>`aaa&gt;bbb&lt;ccc`</span>`\n`<span>`Steinway &amp; Sons, Q&amp;A`</span>`\n`<span>`Steinway & Sons, Q&A`</span>`\n```\n\n### The following pattern is considered a rule violation:\n\n```html\n`<span>`aaa>bbb`<ccc</span>`\n```"
51+
"markdown": "\nSpecial characters must be escaped.\n\nLevel: Error\n\n## Config value\n\n- `true`: enable rule\n- `false`: disable rule\n\n### The following patterns are **not** considered violations\n\n```html\n`<span>`aaa&gt;bbb&lt;ccc`</span>`\n`<span>`Steinway &amp; Sons, Q&amp;A`</span>`\n`<span>`Steinway & Sons, Q&A`</span>`\n```\n\n### The following pattern is considered a rule violation:\n\n```html\n`<span>`aaa>bbb`<ccc</span>`\n```\n\n## Why this rule is important\n\nSpecial HTML characters like `<`, `>`, and `&` must be escaped to prevent them from being interpreted as HTML tags or entities. This avoids rendering issues and potential cross-site scripting (XSS) vulnerabilities."
5252
}
5353
}
5454
],

0 commit comments

Comments
 (0)