Working with General Visual Components > Classes > TextEditor > TextEditor.getFormattedText
getFormattedText();
The getFormattedText method returns HTML view of the text in text area.
The example of use is given in the page with description of the TextEditor.getFontBox method.
See also: