zweitag/glow

Flash messages transmitted via request headers are not decoded to text

Closed this issue · 2 comments

In contrast to normal requests, flash messages sent via request headers (when using XHR) are not decoded when triggered with glow:flash. That means using $('elem').text(flash.message) inside the receiver function outputs HTML entities instead of text when outputting flash messages received via XHR.

glow.js should be adjusted to decode the message before passing it on to glow:flash.

I might do something like $('<div />').html(flash.message).text(); :trollface:

Fixed in 373d78e