This commit is contained in:
Sara Arjona 2022-10-10 16:16:20 +02:00
commit fd14173a88

View file

@ -251,6 +251,13 @@ class MoodleQuickForm_tags extends MoodleQuickForm_autocomplete {
return $this->_prepareValue([], $assoc);
}
// Submitted tag data will be encoded, we want original text.
if (array_key_exists($this->getName(), $submitValues)) {
array_walk($submitValues[$this->getName()], static function(string &$tag): void {
$tag = html_entity_decode($tag);
});
}
return parent::exportValue($submitValues, $assoc);
}