-
Notifications
You must be signed in to change notification settings - Fork 740
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
Is there a way to pass HTML content as message? #63
Comments
You can though you need to use a custom style. The default style is defined here https://github.com/notifyjs/notifyjs/blob/master/dist/notify.js#L585-L625. You'll notice the template has |
The problem was that that it escapes message string passed to function. I
|
This is really useful. Much better if there is an option to allow html. |
|
Seems related to Issue #130 I created a pull request - seems like an easy addon. // To be used like:
$.notify("Lorem<br><b>Ipsum</b>", {encode: false}); |
My messages are generated on backend and have many translations and different types, meaning it will be inefficient to make all this possible templates and translations on front end. But it looks like NotifyJs escapes HTML content, is there any way to pass HTML without escaping?
The text was updated successfully, but these errors were encountered: