echo '<label for="'. $item->typ . '_' . $item->id .'">';
}
echo '('.$item->label.') ';
- echo format_text($item->name.$requiredmark, true, false, false);
+ echo format_text($item->name . $requiredmark, FORMAT_HTML, array('noclean' => true, 'para' => false));
if ($item->dependitem) {
if ($dependitem = $DB->get_record('feedback_item', array('id'=>$item->dependitem))) {
echo ' <span class="feedback_depend">';
echo '<div class="feedback_item_label_'.$align.$highlight.'">';
if ($info->subtype == 'd') {
echo '<label for="'. $item->typ . '_' . $item->id .'">';
- echo format_text($item->name.$requiredmark, true, false, false);
+ echo format_text($item->name . $requiredmark, FORMAT_HTML, array('noclean' => true, 'para' => false));
echo '</label>';
} else {
- echo format_text($item->name.$requiredmark, true, false, false);
+ echo format_text($item->name . $requiredmark, FORMAT_HTML, array('noclean' => true, 'para' => false));
}
echo '</div>';
//print the question and label
echo '<div class="feedback_item_label_'.$align.'">';
echo '('.$item->label.') ';
- echo format_text($item->name . $requiredmark, true, false, false);
+ echo format_text($item->name . $requiredmark, FORMAT_HTML, array('noclean' => true, 'para' => false));
echo '</div>';
//print the presentation
foreach ($values as $val) {
if ($val == $index) {
echo '<div class="feedback_item_multianswer">';
- echo text_to_html($pres, true, false, false);
+ echo format_text($pres, FORMAT_HTML, array('noclean' => true, 'para' => false));
echo '</div>';
break;
}
foreach ($presentation as $pres) {
if ($value == $index) {
echo $OUTPUT->box_start('generalbox boxalign'.$align);
- echo text_to_html($pres, true, false, false);
+ echo format_text($pres, FORMAT_HTML, array('noclean' => true, 'para' => false));
echo $OUTPUT->box_end();
break;
}
</span>
<span class="feedback_item_radiolabel_<?php echo $hv.'_'.$align;?>">
<label for="<?php echo $inputid;?>">
- <?php echo text_to_html($radio, true, false, false);?>
+ <?php echo format_text($radio, FORMAT_HTML, array('noclean' => true, 'para' => false));?>
</label>
</span>
</li>
</span>
<span class="feedback_item_radiolabel_<?php echo $hv.'_'.$align;?>">
<label for="<?php echo $inputid;?>">
- <?php echo text_to_html($check, true, false, false);?>
+ <?php echo format_text($check, FORMAT_HTML, array('noclean' => true, 'para' => false));?>
</label>
</span>
</li>
}
?>
<option value="<?php echo $index;?>" <?php echo $selected;?>>
- <?php echo text_to_html($dropdown, true, false, false);?>
+ <?php echo format_text($dropdown, FORMAT_HTML, array('noclean' => true, 'para' => false));?>
</option>
<?php
$index++;
echo '<label for="'. $item->typ . '_' . $item->id .'">';
}
echo '('.$item->label.') ';
- echo format_text($item->name.$requiredmark, true, false, false);
+ echo format_text($item->name . $requiredmark, FORMAT_HTML, array('noclean' => true, 'para' => false));
if ($item->dependitem) {
if ($dependitem = $DB->get_record('feedback_item', array('id'=>$item->dependitem))) {
echo ' <span class="feedback_depend">';
echo '<div class="feedback_item_label_'.$align.$highlight.'">';
if ($info->subtype == 'd') {
echo '<label for="'. $item->typ . '_' . $item->id .'">';
- echo format_text($item->name.$requiredmark, true, false, false);
+ echo format_text($item->name . $requiredmark, FORMAT_HTML, array('noclean' => true, 'para' => false));
echo '</label>';
} else {
- echo format_text($item->name.$requiredmark, true, false, false);
+ echo format_text($item->name . $requiredmark, FORMAT_HTML, array('noclean' => true, 'para' => false));
}
echo '</div>';
//print the question and label
echo '<div class="feedback_item_label_'.$align.'">';
echo '('.$item->label.') ';
- echo format_text($item->name . $requiredmark, true, false, false);
+ echo format_text($item->name . $requiredmark, FORMAT_HTML, array('noclean' => true, 'para' => false));
echo '</div>';
//print the presentation
if ($value == $index) {
$item_value = explode(FEEDBACK_MULTICHOICERATED_VALUE_SEP, $line);
echo $OUTPUT->box_start('generalbox boxalign'.$align);
- echo text_to_html($item_value[1], true, false, false);
+ echo format_text($item_value[1], FORMAT_HTML, array('noclean' => true, 'para' => false));
echo $OUTPUT->box_end();
break;
}
<?php
if ($showrating) {
$str_rating_value = '('.$radio_value[0].') '.$radio_value[1];
- echo text_to_html($str_rating_value, true, false, false);
+ echo format_text($str_rating_value, FORMAT_HTML, array('noclean' => true, 'para' => false));
} else {
- echo text_to_html($radio_value[1], true, false, false);
+ echo format_text($radio_value[1], FORMAT_HTML, array('noclean' => true, 'para' => false));
}
?>
</label>
$dropdown_value = explode(FEEDBACK_MULTICHOICERATED_VALUE_SEP, $line);
if ($showrating) {
echo '<option value="'.$index.'" '.$selected.'>';
- echo clean_text('('.$dropdown_value[0].') '.$dropdown_value[1]);
+ echo format_text('(' . $dropdown_value[0] . ') ' . $dropdown_value[1], FORMAT_HTML, array('para' => false));
echo '</option>';
} else {
echo '<option value="'.$index.'" '.$selected.'>';
- echo clean_text($dropdown_value[1]);
+ echo format_text($dropdown_value[1], FORMAT_HTML, array('para' => false));
echo '</option>';
}
$index++;