Commit 72124dc
authored
fix(Find): Replace single quotes in Finding’s
Addresses #22 (that issue will remain open until this fix is backported
to the v1 and v2 series)
This PR escapes single quotes in the `html` field (other fields were
escaped already). This prevents findings for elements with single quotes
(e.g. `<p>Hi y'all!</p>`) from breaking workflows, specifically around
[action.yml#86](https://github.com/github/accessibility-scanner/blob/3a0a60f790958e521e9455a6a69d4752fdbeea56/action.yml#L86),
where a single-quoted shell string is sent to `jq`.html field (#36)1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments