javascript CKEDITOR - 关闭 html 编码

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/20645750/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-27 18:56:19  来源:igfitidea点击:

CKEDITOR - turn off html encoding

javascripthtmlckeditor

提问by ojek

In my CKEDITOR, when I type following letters:

在我的 CKEDITOR 中,当我输入以下字母时:

ó " ... whitespace and more

I am getting the following HTML:

我得到以下 HTML:

ó „ …   and so on...

How can I turn this off, so that the server will receive "normal" letters?

如何关闭此功能,以便服务器收到“正常”信件?

回答by ojek

I managed to reduce the number of characters converted by adding this to my config file:

通过将其添加到我的配置文件中,我设法减少了转换的字符数:

config.htmlEncodeOutput = false;
config.entities = false;

But whitespaces are still being converted into  ...

但是空格仍在被转换成 ......