Scoped GlideElement - getHTMLValue(Number maxChars)

Returns the HTML value of a field.

Table 1. Parameters
Name Type Description
maxChars Number Optional. Maximum number of characters to return.
Table 2. Returns
Type Description
String HTML value for the field

var inccause = new GlideRecord("incident");
inccause.short_description = current.short_description;
inccause.comments = current.comments.getHTMLValue();
inccause.insert();