function qformat_qti2::writetext in Quiz 6.5
Same name and namespace in other branches
- 6.6 includes/moodle/question/format/qti2/format.php \qformat_qti2::writetext()
File
- includes/
moodle/ question/ format/ qti2/ format.php, line 167
Class
Code
function writetext($raw) {
// generates <text></text> tags, processing raw text therein
// for now, don't allow any additional tags in text
// otherwise xml rules would probably get broken
$raw = strip_tags($raw);
return "<text>{$raw}</text>\n";
}