original_string: static public function extract_useranswer($useranswer) {
          $essayinfo = unserialize($useranswer);
          if (!isset($essayinfo->responseformat)) {
              $essayinfo->response = text_to_html($essayinfo->response, false, false);
              $essayinfo->responseformat = FORMAT_HTML;
          }
          return $essayinfo;
      }
code: static public function extract_useranswer($useranswer) {
          $essayinfo = unserialize($useranswer);
          if (!isset($essayinfo->responseformat)) {
              $essayinfo->response = text_to_html($essayinfo->response, false, false);
              $essayinfo->responseformat = FORMAT_HTML;
          }
          return $essayinfo;
      }
code_tokens: static public function extract_useranswer ( $ useranswer ) { $ essayinfo = unserialize ( $ useranswer ) ; if ( ! isset ( $ essayinfo -> responseformat ) ) { $ essayinfo -> response = text_to_html ( $ essayinfo -> response , false , false ) ; $ essayinfo -> responseformat = FORMAT_HTML ; } return $ essayinfo ; }
docstring: Unserialize attempt useranswer and add missing responseformat if needed
  for compatibility with old records.
  
  @param string $useranswer serialized object
  @return object
docstring_tokens: Unserialize attempt useranswer and add missing responseformat if needed for compatibility with old records .