Home   Pricing

editor.htmlEncode(text)

Converts a string into an HTML-encoded string.

Syntax

editor.htmlEncode(string)

Parameter

Type: String

Required. The string to encode.

Return value

Type: String

An encoded string.

Example:

  1. var editor1 = new RichTextEditor("#div_editor1");    
  2. var htmlcode=editor1.htmlEncode(" so a < b and b < c ")  
  3. alert(htmlcode)