original_string: protected function format_summary_text($section) {
          $context = context_course::instance($section->course);
          $summarytext = file_rewrite_pluginfile_urls($section->summary, 'pluginfile.php',
              $context->id, 'course', 'section', $section->id);
  
          $options = new stdClass();
          $options->noclean = true;
          $options->overflowdiv = true;
          return format_text($summarytext, $section->summaryformat, $options);
      }
code: protected function format_summary_text($section) {
          $context = context_course::instance($section->course);
          $summarytext = file_rewrite_pluginfile_urls($section->summary, 'pluginfile.php',
              $context->id, 'course', 'section', $section->id);
  
          $options = new stdClass();
          $options->noclean = true;
          $options->overflowdiv = true;
          return format_text($summarytext, $section->summaryformat, $options);
      }
code_tokens: protected function format_summary_text ( $ section ) { $ context = context_course :: instance ( $ section -> course ) ; $ summarytext = file_rewrite_pluginfile_urls ( $ section -> summary , 'pluginfile.php' , $ context -> id , 'course' , 'section' , $ section -> id ) ; $ options = new stdClass ( ) ; $ options -> noclean = true ; $ options -> overflowdiv = true ; return format_text ( $ summarytext , $ section -> summaryformat , $ options ) ; }
docstring: Generate html for a section summary text
  
  @param stdClass $section The course_section entry from DB
  @return string HTML to output.
docstring_tokens: Generate html for a section summary text