function qformat_learnwise::unhtmlentities in Quiz 6.5
Same name and namespace in other branches
- 6.6 includes/moodle/question/format/learnwise/format.php \qformat_learnwise::unhtmlentities()
1 call to qformat_learnwise::unhtmlentities()
- qformat_learnwise::readquestion in includes/
moodle/ question/ format/ learnwise/ format.php - Given the data known to define a question in this format, this function converts it into a question object suitable for processing and insertion into Moodle.
File
- includes/
moodle/ question/ format/ learnwise/ format.php, line 143
Class
- qformat_learnwise
- @package questionbank @subpackage importexport
Code
function unhtmlentities($string) {
$transtable = get_html_translation_table(HTML_ENTITIES);
$transtable = array_flip($transtable);
return strtr($string, $transtable);
}