You are here

private function MultichoiceResponse::checkMarkup in Quiz 8.4

Run check_markup() on the field of the specified choice alternative

Parameters

$alternative: String to be checked

$format: The input format to be used

$check_user_access: Whether or not we are to check the users access to the chosen format

Return value

HTML markup

1 call to MultichoiceResponse::checkMarkup()
MultichoiceResponse::getReportFormResponse in question_types/multichoice/lib/Drupal/multichoice/MultichoiceResponse.php
Implementation of getReportFormResponse

File

question_types/multichoice/lib/Drupal/multichoice/MultichoiceResponse.php, line 287

Class

MultichoiceResponse
Extension of QuizQuestionResponse

Namespace

Drupal\multichoice

Code

private function checkMarkup($alternative, $format, $check_user_access = FALSE) {

  // If the string is empty we don't run it through input filters(They might add empty tags).
  if (drupal_strlen($alternative) == 0) {
    return '';
  }
  return check_markup($alternative, $format, $langcode = '', $check_user_access);
}