abernier / mosaico-backend

Ready to go backend for Mosaico editor
https://mosaicobackend-prod.herokuapp.com
GNU General Public License v3.0
12 stars 13 forks source link

UTF-8 #49

Closed ivinkaf closed 5 years ago

ivinkaf commented 5 years ago

Hi,

when I use in Text block special characters as "šážť", in html code there are displayed with HTML name, such as: "

Toto špečíálne charaktery žebý ášč neíčvieme

"

is there, please, a way to use in html code symbols "á" instead of html name for special characters?

Thanks Ivet

Hiswe commented 5 years ago

Not sure to totally understand. Are the characters replaced by html entities?

If so, I guess it's done by the tiny mce editor

ivinkaf commented 5 years ago

Yes, if I write á in code it is replaced by á https://www.starr.net/is/type/htmlcodes.html

Do you have any idea how to change it? Thanks

Hiswe commented 5 years ago

No idea :/ and not sure it's a desires behavior. This editor targets email client, so I think having HTML entities is better for compatibility.

Do you have any display problems?

Hiswe commented 5 years ago

@ivinkaf can you try on the original mosaico editor if you have the same output?

ivinkaf commented 5 years ago

Thanks, I tried original mosaico editor and it is working there...the output is á...

Hiswe commented 5 years ago

So this should come from the server/download.js

the secureHtml function does that.

You could replace it like this:

function secureHtml(html) {
  return html
}
ivinkaf commented 5 years ago

Thanks! I have replaced it, and now it works perfect :)