Commit 407838c
committed
fix: remove invalid characters from result.html anchor links
Links to result.html failed when maintainer names contained spaces or
special characters like '&' (e.g., "klaernie & KristjanESPERANTO").
The '&' character is not valid in CSS selectors, causing querySelector
to throw "not a valid selector" errors. URL-encoded spaces (%20) also
didn't match the dash-converted anchor IDs.
Now both script.js (link generation) and result.html (anchor creation)
use the same sanitization: replace spaces with dashes and remove '&'
and '/' characters.1 parent f6e240c commit 407838c
2 files changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| |||
0 commit comments