mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Merge branch 'MDL-75656' of https://github.com/paulholden/moodle
This commit is contained in:
commit
fd14173a88
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue