You are here

function qformat_qti2::writetext in Quiz 6.6

Same name and namespace in other branches
  1. 6.5 includes/moodle/question/format/qti2/format.php \qformat_qti2::writetext()

File

includes/moodle/question/format/qti2/format.php, line 167

Class

qformat_qti2

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";
}