Encoding ExtJS4,对表单项进行编码

Encoding ExtJS4,对表单项进行编码,encoding,extjs4,Encoding,Extjs4,在提交表单之前,如何对htmleditor正文进行编码?(Ext.form.Panel)在提交表单之前尝试使用Base64编码,然后在服务器端对其进行解码。谢谢,但是 var form = this.up('form').getForm(); var old = form.findField('body').getValue(); old = Ext.util.Format.htmlEncode(oldBodyValue); form.findField('body').setValue(old

在提交表单之前,如何对htmleditor正文进行编码?(Ext.form.Panel

在提交表单之前尝试使用Base64编码,然后在服务器端对其进行解码。

谢谢,但是

var form = this.up('form').getForm();
var old = form.findField('body').getValue();
old = Ext.util.Format.htmlEncode(oldBodyValue);
form.findField('body').setValue(old);

HtmlEncode,escape html,类似这样的内容)DmitryB,no.“请求验证检测到一个潜在危险的客户端输入值”