Specify encoding for newsletter previews in browser to fix entity issue
This commit is contained in:
@ -236,7 +236,7 @@ define([
|
|||||||
data: json,
|
data: json,
|
||||||
}).done(function(response){
|
}).done(function(response){
|
||||||
console.log('Should open a new window');
|
console.log('Should open a new window');
|
||||||
window.open('data:text/html,' + encodeURIComponent(response.rendered_body), '_blank');
|
window.open('data:text/html;charset=utf-8,' + encodeURIComponent(response.rendered_body), '_blank');
|
||||||
}).fail(function(error) {
|
}).fail(function(error) {
|
||||||
console.log('Preview error', json);
|
console.log('Preview error', json);
|
||||||
alert('Something went wrong, check console');
|
alert('Something went wrong, check console');
|
||||||
|
Reference in New Issue
Block a user