original_string: public function clear_wrong(question_attempt $qa) {
          $response = $qa->get_last_qt_data();
          if (!$response) {
              return '';
          }
          $cleanresponse = $qa->get_question()->clear_wrong_from_response($response);
          $output = '';
          foreach ($cleanresponse as $name => $value) {
              $attr = array(
                  'type' => 'hidden',
                  'name' => $qa->get_qt_field_name($name),
                  'value' => s($value),
              );
              $output .= html_writer::empty_tag('input', $attr);
          }
          return $output;
      }
code: public function clear_wrong(question_attempt $qa) {
          $response = $qa->get_last_qt_data();
          if (!$response) {
              return '';
          }
          $cleanresponse = $qa->get_question()->clear_wrong_from_response($response);
          $output = '';
          foreach ($cleanresponse as $name => $value) {
              $attr = array(
                  'type' => 'hidden',
                  'name' => $qa->get_qt_field_name($name),
                  'value' => s($value),
              );
              $output .= html_writer::empty_tag('input', $attr);
          }
          return $output;
      }
code_tokens: public function clear_wrong ( question_attempt $ qa ) { $ response = $ qa -> get_last_qt_data ( ) ; if ( ! $ response ) { return '' ; } $ cleanresponse = $ qa -> get_question ( ) -> clear_wrong_from_response ( $ response ) ; $ output = '' ; foreach ( $ cleanresponse as $ name => $ value ) { $ attr = array ( 'type' => 'hidden' , 'name' => $ qa -> get_qt_field_name ( $ name ) , 'value' => s ( $ value ) , ) ; $ output .= html_writer :: empty_tag ( 'input' , $ attr ) ; } return $ output ; }
docstring: Output hidden form fields to clear any wrong parts of the student's response.
  
  This method will only be called if the question is in read-only mode.
  @param question_attempt $qa the question attempt to display.
  @return string HTML fragment.
docstring_tokens: Output hidden form fields to clear any wrong parts of the student s response .