Skip to content

Commit

Permalink
Update Cross_Site_Scripting_Prevention_Cheat_Sheet.md (#1484)
Browse files Browse the repository at this point in the history
* Update Cross_Site_Scripting_Prevention_Cheat_Sheet.md

#1480

* Update Cross_Site_Scripting_Prevention_Cheat_Sheet.md
  • Loading branch information
dp-anto committed Sep 9, 2024
1 parent 41c5efe commit 46d3fe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ elem.innerHTML = DOMPurify.sanitize(dangerVar);
**Safe HTML Attributes include:** `align`, `alink`, `alt`, `bgcolor`, `border`, `cellpadding`, `cellspacing`, `class`, `color`, `cols`, `colspan`, `coords`, `dir`, `face`, `height`, `hspace`, `ismap`, `lang`, `marginheight`, `marginwidth`, `multiple`, `nohref`, `noresize`, `noshade`, `nowrap`, `ref`, `rel`, `rev`, `rows`, `rowspan`, `scrolling`, `shape`, `span`, `summary`, `tabindex`, `title`, `usemap`, `valign`, `value`, `vlink`, `vspace`, `width`.
For a comprehensive list, check out the [DOMPurify allowlist](https://github.com/cure53/DOMPurify/blob/main/src/attrs.js)
For attributes not reported above, ensure that if JavaScript code is provided as a value, it cannot be executed.
## Other Controls
Expand Down

0 comments on commit 46d3fe3

Please sign in to comment.