You are here

function _cloze_get_clean_text in Cloze 7

Makes the given text consistent for comparison

2 calls to _cloze_get_clean_text()
ClozeQuestion::evaluateAnswer in ./cloze.classes.inc
Evaluate the correctness of an answer based on the correct answer and evaluation method.
_cloze_get_user_answer in ./cloze.module

File

./cloze.module, line 184

Code

function _cloze_get_clean_text($text) {
  $text = trim($text);
  $text = drupal_strtolower($text);
  return $text;
}