how to display text got from HTML EDITOR

Re: how to display text got from HTML EDITOR

by Paul Holden -
Number of replies: 0
Picture of Core developers Picture of Moodle HQ Picture of Moodle Workplace team Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Testers
Hi Ye,

Try try something like the following:

$fobj = new Object;
$fobj->para = false;
echo(format_text($data->text, FORMAT_MOODLE, $fobj));