MDL-60331 questions: prevent double escaping question categories.

This commit is contained in:
Luca Bösch
2021-04-28 17:16:31 +02:00
parent 5b315fa595
commit 003d17d98b
6 changed files with 51 additions and 18 deletions
+2
View File
@@ -1831,6 +1831,8 @@ class html_writer {
/**
* Generates a simple select form field
*
* Note this function does HTML escaping on the optgroup labels, but not on the choice labels.
*
* @param array $options associative array value=>label ex.:
* array(1=>'One, 2=>Two)
* it is also possible to specify optgroup as complex label array ex.: