sciactive / pnotify

Beautiful JavaScript notifications with Web Notifications support.
https://sciactive.com/pnotify/
Apache License 2.0
3.65k stars 513 forks source link

HTML Tags #236

Closed ghost closed 6 years ago

ghost commented 8 years ago

How do you, either, remove html tags for desktop notifications while leaving them intact for popups or parse html tags in desktop notifications as they are in popups?

Thank you

ghost commented 8 years ago

I have, temporarily, stripped the html from the text before sending to pnotify. But I would like to be able to remove the hmtl only if desktop notification is used.

MaxShv commented 8 years ago

+1

gkopylov commented 8 years ago

You can do this by specifying different text for desktop(from https://github.com/sciactive/pnotify/pull/205):

desktop: {
  ...
  text: 'Some text only for desktop'
}

and for title you can use this PR https://github.com/sciactive/pnotify/pull/247 (I hope it'll be merged):

desktop: {
  ...
  title: 'Some title only for desktop'
}