abernier / mosaico-backend

Ready to go backend for Mosaico editor

Home Page:https://mosaicobackend-prod.herokuapp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UTF-8

ivinkaf opened this issue · comments

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

commented

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

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

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

commented

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?

commented

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

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

commented

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
}

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