From: jamiesensei Date: Mon, 16 Jul 2007 06:04:20 +0000 (+0000) Subject: when element is frozen should not escape html entities in htmleditor. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=bb90bf3fb26da1096bfff558dbc57f166d237d48;p=moodle.git when element is frozen should not escape html entities in htmleditor. --- diff --git a/lib/form/htmleditor.php b/lib/form/htmleditor.php index fc145f73f2..20d1109a88 100644 --- a/lib/form/htmleditor.php +++ b/lib/form/htmleditor.php @@ -84,5 +84,16 @@ class MoodleQuickForm_htmleditor extends MoodleQuickForm_textarea{ } } //end func toHtml + /** + * What to display when element is frozen. + * + * @access public + * @return string + */ + function getFrozenHtml() + { + $html = format_text($this->getValue()); + return $html . $this->_getPersistantData(); + } //end func getFrozenHtml } ?> \ No newline at end of file