This repository was archived by the owner on Oct 28, 2020. It is now read-only.
Commit 1876911
Use createTextNode() to avoid possible XSS (#145)
* Use createTextNode() to avoid possible XSS
For reference: https://stackoverflow.com/questions/476821/is-a-dom-text-node-guaranteed-to-not-be-interpreted-as-html
For XSS Example: https://jsfiddle.net/32795mpy/
* delete whitespace for CI
* update variable names
"hiddenText" => "shavedText"
"wrapper" => "elWithShavedText"1 parent 0e0365d commit 1876911
1 file changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
64 | 67 | | |
65 | 68 | | |
66 | 69 | | |
| |||
0 commit comments