editor.htmlEncode(text)
文字列を HTML エンコードされた文字列に変換します。
構文
editor.htmlEncode(string)
パラメーター
型:String
必須。エンコードする文字列。
戻り値
型:String
エンコードされた文字列。
使用例
var editor1 = new RichTextEditor("#div_editor1");
var htmlcode=editor1.htmlEncode(" so a < b and b < c ");
alert(htmlcode);