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;
    }
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;
    }
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 ; }
Unserialize attempt useranswer and add missing responseformat if needed
for compatibility with old records.

@param string $useranswer serialized object
@return object
Unserialize attempt useranswer and add missing responseformat if needed for compatibility with old records .