GithubHelp home page GithubHelp logo

Comments (6)

jpillora avatar jpillora commented on September 21, 2024

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 data-notify-text, in your style - use data-notify-html instead - see Custom Styling Guide in the docs

from notifyjs.

vedmant avatar vedmant commented on September 21, 2024

The problem was that that it escapes message string passed to function. I
just made little fix in JS code and removed that line where it escapes
message string.
On Jun 8, 2016 12:47 PM, "Jaime Pillora" [email protected] wrote:

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 data-notify-text, in your style - use
data-notify-html instead - see Custom Styling Guide in the docs
https://notifyjs.com/


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#63 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AE0X9j5QbBfc4t5EOwo3IRSaB6LOFjCqks5qJwA0gaJpZM4INymY
.

from notifyjs.

rajitha-bandara avatar rajitha-bandara commented on September 21, 2024

This is really useful. Much better if there is an option to allow html.

from notifyjs.

danimesq avatar danimesq commented on September 21, 2024

@jpillora

from notifyjs.

jaysoni-india avatar jaysoni-india commented on September 21, 2024

$.notify.addStyle('happyblue', { html: "<div>☺<span data-notify-text/>☺</div>", classes: { base: { "white-space": "nowrap", "background-color": "lightblue", "padding": "5px" }, superblue: { "color": "white", "background-color": "blue" } } [});](https://notifyjs.jpillora.com/)

from notifyjs.

rokobuljan avatar rokobuljan commented on September 21, 2024

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});

from notifyjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.