editor.htmlDecode(text)
把为 HTTP 传输而经过 HTML 编码的字符串转换为解码后的字符串。
语法
editor.htmlDecode(text)
参数
类型:String
必填。要解码的字符串。
返回值
类型:String
解码后的字符串。
用法示例
var editor1 = new RichTextEditor("#div_editor1");
var htmlcode=editor1.htmlDecode(" so a < b and b < c ");
alert(htmlcode);