Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed xss vulnerability #686

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ toastr.success('We do have the Kapua suite available.', 'Turtle Bay Resort', {ti
```

### Escape HTML characters
In case you want to escape HTML charaters in title and message
In case you don't want to escape HTML charaters in title and message

toastr.options.escapeHtml = true;
toastr.options.escapeHtml = false;

### Close Button
Optionally enable a close button
Expand Down
2 changes: 1 addition & 1 deletion toastr.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
timeOut: 5000, // Set timeOut and extendedTimeOut to 0 to make it sticky
titleClass: 'toast-title',
messageClass: 'toast-message',
escapeHtml: false,
escapeHtml: true,
target: 'body',
closeHtml: '<button type="button">&times;</button>',
closeClass: 'toast-close-button',
Expand Down