~ubuntu-branches/ubuntu/saucy/moodle/saucy

« back to all changes in this revision

Viewing changes to question/format/xhtml/format.php

  • Committer: Package Import Robot
  • Author(s): Thijs Kinkhorst
  • Date: 2013-09-09 15:22:35 UTC
  • mfrom: (1.1.17) (3.1.29 sid)
  • Revision ID: package-import@ubuntu.com-20130909152235-f5g7gphaseb84qeu
Tags: 2.5.2-1
* New upstream version: 2.5.2.
  - Incorporates S3 security patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
        // add header
67
67
        $expout .= "<h3>$question->name</h3>\n";
68
68
 
69
 
        // Format and add the question text
70
 
        $expout .= '<p class="questiontext">' . format_text($question->questiontext,
71
 
                $question->questiontextformat) . "</p>\n";
 
69
        // Format and add the question text.
 
70
        $text = question_rewrite_questiontext_preview_urls($question->questiontext,
 
71
                $question->contextid, 'qformat_xhtml', $question->id);
 
72
        $expout .= '<p class="questiontext">' . format_text($text,
 
73
                $question->questiontextformat, array('noclean' => true)) . "</p>\n";
72
74
 
73
75
        // selection depends on question type
74
76
        switch($question->qtype) {