vojtech-dobes / nette.ajax.js

Flexible AJAX for Nette Framework. Supports snippets, redirects etc.
https://componette.org/vojtech-dobes/nette.ajax.js/
MIT License
149 stars 85 forks source link

title should not be escaped (when you assing title you should unescape before) #146

Open matak opened 7 years ago

matak commented 7 years ago

https://github.com/vojtech-dobes/nette.ajax.js/blob/299903f97158084b06fcbaeb2a2db87b38eac68b/nette.ajax.js#L467-L469

when you set escaped string to document.title

document.title = ">"

the result is still escaped, windows title shows >

it is not decoded like $('<div/>').html("&gt;").text(); where the final string is >

vojtech-dobes commented 7 years ago

Would you prepare PR please?