From: skodak Date: Mon, 11 Dec 2006 09:35:27 +0000 (+0000) Subject: MDL-6635 Template fields filtered twice X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5023c3abc83d1519315ceb3d51f6a744d8872074;p=moodle.git MDL-6635 Template fields filtered twice --- diff --git a/mod/data/lib.php b/mod/data/lib.php index f5a72926ba..8f83053976 100755 --- a/mod/data/lib.php +++ b/mod/data/lib.php @@ -854,13 +854,9 @@ function data_print_template($template, $records, $data, $search='',$page=0, $re ///actual replacement of the tags $newtext = str_ireplace($patterns, $replacement, $data->{$template}); - $options->para=false; - $options->noclean=true; - if ($return) { - return format_text($newtext, FORMAT_HTML, $options); - } else { - echo format_text($newtext, FORMAT_HTML, $options); - } + + /// no more html formatting and filtering - see MDL-6635 + echo $newtext; /********************************** * Printing Ratings Form *