Process the text properly for the category path.
Merged from STABLE_18.
// add opening tag
// generates specific header for Cloze and category type question
if ($question->qtype == 'category') {
+ $categorypath = $this->writetext( $question->category );
$expout .= " <question type=\"category\">\n";
$expout .= " <category>\n";
- $expout .= " $question->category\n";
+ $expout .= " $categorypath\n";
$expout .= " </category>\n";
$expout .= " </question>\n";
return $expout;