From bb90bf3fb26da1096bfff558dbc57f166d237d48 Mon Sep 17 00:00:00 2001 From: jamiesensei Date: Mon, 16 Jul 2007 06:04:20 +0000 Subject: [PATCH] when element is frozen should not escape html entities in htmleditor. --- lib/form/htmleditor.php | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- 2.39.5