original_string: private function format_response($response, $context, $responseformat, $answerid, $options) {
  
          $convertstudentresponse = file_rewrite_pluginfile_urls($response, 'pluginfile.php',
              $context->id, 'mod_lesson', 'page_responses', $answerid);
  
          return format_text($convertstudentresponse, $responseformat, $options);
      }
code: private function format_response($response, $context, $responseformat, $answerid, $options) {
  
          $convertstudentresponse = file_rewrite_pluginfile_urls($response, 'pluginfile.php',
              $context->id, 'mod_lesson', 'page_responses', $answerid);
  
          return format_text($convertstudentresponse, $responseformat, $options);
      }
code_tokens: private function format_response ( $ response , $ context , $ responseformat , $ answerid , $ options ) { $ convertstudentresponse = file_rewrite_pluginfile_urls ( $ response , 'pluginfile.php' , $ context -> id , 'mod_lesson' , 'page_responses' , $ answerid ) ; return format_text ( $ convertstudentresponse , $ responseformat , $ options ) ; }
docstring: Formats the response
  
  @param string $response
  @param context $context
  @param int $responseformat
  @param int $answerid
  @param stdClass $options
  @return string Returns formatted string
docstring_tokens: Formats the response