1

I'm making a chrome extension which displays desktop notifications on particular events. I am receiving and displaying the desktop notifications just fine, but the problem comes when I try to put attribute tags into notification. Instead of being the text as tags to be appended to the notififcation's DOM, Chrome seems to just interpret them as plaintext, resulting in the content of the notification being just html source code.

Is there any way that I can have the body of my messages be appended as HTML instead of just text or am I just out of luck?

4

1 に答える 1

1

以前は可能でしたが、現在は不可能です。ただし、「リッチ通知」を使用して、リンクをボタンに配置することもできます。詳細については、 https://stackoverflow.com/a/13328513/488287を参照してください。

于 2013-09-19T05:50:26.327 に答える