-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit replaces call to innerHTML with a call to innerText to ensure user supplied text will not create elements in the DOM. An alternative to this approach would be to sanitize user input before adding it to the DOM. Signed-off-by: Casey Flynn <caseyflynn@google.com>
- Loading branch information
1 parent
f5209b3
commit 791b576
Showing
2 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters